Skip to content

templates/15-gomod.sh: fix mkdir errors #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2025
Merged

Conversation

handsomexdd1024
Copy link
Contributor

Previously when a package uses gomod template multiple times, sub-packages built after the first one would fail because $SRCDIR/abbuild exists.

This patch fixes mkdir errors by adding -p option to mkdir, avoiding re-creation of subdirs and returning errors when $SRCDIR/abbuild has already been created by previous builds.

See incus build error log.

Previously when a package uses gomod template multiple times, sub-packages
built after the first one would fail because $SRCDIR/abbuild exists.

This patch fixes mkdir errors by adding -p option to mkdir, avoiding re-
creation of subdirs and returning errors when $SRCDIR/abbuild has already
been created by previous builds.
@handsomexdd1024 handsomexdd1024 merged commit 1f70237 into master Jun 29, 2025
1 check passed
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