Skip to content

Validate install prerequisites - #747

Open
Brendan Burns (brendandburns) wants to merge 3 commits into
agent-substrate:mainfrom
brendandburns:improve-install-prerequisite-checks
Open

Validate install prerequisites#747
Brendan Burns (brendandburns) wants to merge 3 commits into
agent-substrate:mainfrom
brendandburns:improve-install-prerequisite-checks

Conversation

@brendandburns

Copy link
Copy Markdown

Add checks for three prerequisites which I hit when I was installing using a fresh system.

@thockin Tim Hockin (thockin) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this

Comment thread hack/install-ate.sh
local status=""
status="$(git status --porcelain --untracked-files=normal)"
if [[ -n "${status}" ]]; then
echo "Error: ko requires a clean Git worktree, but local changes were found:" >&2

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/ko/this operation/ ?

Comment thread hack/install-ate.sh
}

check_go() {
if ! command -v go >/dev/null 2>&1; then

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require_command go ?

Comment thread hack/install-ate.sh

check_go_tool_ko() {
if ! (
cd "${ROOT}/hack/tools/ko" &&

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

given that this is in the repo, in a tool that we manage, how would it possibly fail here ?

Also ./hack/run-tool.sh ko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants