Skip to content

Commit

Permalink
chore: fix windows development setup
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbreuninger committed Dec 9, 2024
1 parent c15a507 commit 0cfd946
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 5 additions & 1 deletion hack/rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ done

echo "[INFO] Built binaries for all platforms in test/ directory"
if [[ -z "${SKIP_INSTALL}" ]]; then
go build -o test/devpod && sudo mv test/devpod /usr/local/bin/
if command -v sudo &> /dev/null; then
go build -o test/devpod && sudo mv test/devpod /usr/local/bin/
else
go install .
fi
fi

echo "[INFO] Built devpod binary and moved to /usr/local/bin"
Expand Down
4 changes: 0 additions & 4 deletions pkg/agent/inject.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ func InjectAgentAndExecute(
versionCheck := fmt.Sprintf(`[ "$(%s version 2>/dev/null || echo 'false')" != "%s" ]`, remoteAgentPath, version.GetVersion())
if version.GetVersion() == version.DevVersion {
preferDownload = false

if runtime.GOOS == "windows" {
preferDownload = true
}
}

// install devpod into the target
Expand Down

0 comments on commit 0cfd946

Please sign in to comment.