Skip to content

Commit 40ad99b

Browse files
committed
🔧 refactor: simplify update source command and documentation
- Removed the deprecated environment variable setting that forced the local Go toolchain in `update_source.go`. - Revised documentation for clarity regarding the self-healing build pipeline to reflect the handling of environment-specific issues. - Streamlined the screenshot directory configuration in `config.go` for improved readability and maintainability.
1 parent fe24c90 commit 40ad99b

3 files changed

Lines changed: 3 additions & 13 deletions

File tree

‎cmd/vibeaura/update_source.go‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@ func buildAndInstallFromSource(sourceRoot, branch string, cm *sys.ConfigManager)
124124
buildCmd := exec.Command("go", "build", "-ldflags", ldflags, "-o", buildOut, "./cmd/vibeaura")
125125
buildCmd.Dir = sourceRoot
126126

127-
// Force Go to use the locally installed toolchain and avoid automatic downloads
128-
// which often fail on mobile/Termux.
129-
buildCmd.Env = append(os.Environ(), "GOTOOLCHAIN=local")
130-
131127
if verbose {
132128
buildCmd.Stdout = os.Stdout
133129
buildCmd.Stderr = os.Stderr

‎docs/docs/lifecycle/updates.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ This is VibeAuracle's "killer feature" for productivity. In the TUI mode:
2424

2525
## Self-Healing Build Pipeline
2626

27-
Building from source can be brittle, especially on mobile environments like Termux. VibeAuracle includes an autonomous recovery system:
27+
Building from source can sometimes fail due to environment-specific issues. VibeAuracle includes an autonomous recovery system:
2828

29-
* **Dependency Injection:** If a build fails on Termux, the tool checks if the Go toolchain is outdated and attempts to run `pkg upgrade golang` automatically.
3029
* **Recursive Recovery:** If three consecutive updates fail, the tool enters a "Self-Healing" mode where it deletes its own binary and triggers a fresh installation from the official release script to restore stability.
3130

3231
## Audit Logs

‎internal/sys/config.go‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,8 @@ func NewConfigManager() (*ConfigManager, error) {
112112
v.SetDefault("prompt.recommendations_sample_rate", 0.02)
113113
v.SetDefault("prompt.recommendations_max_per_run", 1)
114114

115-
// Platform-specific screenshot directory
116-
var defaultShotDir string
117-
if _, err := os.Stat("/data/data/com.termux/files/usr/bin/bash"); err == nil {
118-
defaultShotDir = filepath.Join(home, "downloads", "vibeaura")
119-
} else {
120-
defaultShotDir = filepath.Join(home, "Downloads", "vibeaura")
121-
}
115+
// Default screenshot directory
116+
defaultShotDir := filepath.Join(home, "Downloads", "vibeaura")
122117
v.SetDefault("ui.screenshot_dir", defaultShotDir)
123118

124119
v.SetDefault("update.build_from_source", false)

0 commit comments

Comments
 (0)