Skip to content

infra-bin-releases: make build.sh idempotent (mkdir -p go) - #175

Open
Montana wants to merge 1 commit into
Sabayon:masterfrom
Montana:patch-1
Open

infra-bin-releases: make build.sh idempotent (mkdir -p go)#175
Montana wants to merge 1 commit into
Sabayon:masterfrom
Montana:patch-1

Conversation

@Montana

@Montana Montana commented Jun 30, 2026

Copy link
Copy Markdown

Change mkdir go to mkdir -p go in infra-bin-releases/build.sh.

The script runs under set -e. mkdir go (without -p) exits non-zero if go/ already exists, which happens on any re-run or whenever the workspace isn't pristine, and set -e then aborts the entire build.

The very next mkdir in the same script (line 11, mkdir -p go/src/${VENDORDIR}) already uses -p, so this just makes the two consistent.

Change `mkdir go` to `mkdir -p go` in `infra-bin-releases/build.sh`.

The script runs under `set -e`. `mkdir go` (without `-p`) exits non-zero if `go/` already exists, which happens on any re-run or whenever the workspace isn't pristine, and `set -e` then aborts the entire build.

The very next `mkdir` in the same script (line 11, `mkdir -p go/src/${VENDORDIR}`) already uses `-p`, so this just makes the two consistent.
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.

1 participant