Skip to content
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

bluebuild build fails when installed via cargo install #175

Closed
duhdugg opened this issue May 5, 2024 · 0 comments · Fixed by #176
Closed

bluebuild build fails when installed via cargo install #175

duhdugg opened this issue May 5, 2024 · 0 comments · Fixed by #176
Assignees
Labels
priority: critical Should be done as soon as possible state: in-progress Work has started type: bug Something isn't working.

Comments

@duhdugg
Copy link

duhdugg commented May 5, 2024

I am trying to build locally using the template recipe: https://github.com/blue-build/template/blob/main/recipes/recipe.yml

When installed via cargo install --locked blue-build:

❯ bluebuild --version                 
BlueBuild 0.8.6
branch:
commit_hash:
build_time:2024-05-04 22:18:16 -04:00
build_env:rustc 1.78.0 (9b00956e5 2024-04-29),stable-x86_64-unknown-linux-gnu
❯ bluebuild build ./recipes/recipe.yml

fails here:

[5/5] STEP 10/18: RUN   --mount=type=bind,from=stage-config,src=/config,dst=/tmp/config,rw   --mount=type=bind,from=stage-modules,src=/modules,dst=/tmp/modules,rw   --mount=type=bind,from=ghcr.io/blue-build/cli:-build-scripts,src=/scripts/,dst=/tmp/scripts/   --mount=type=cache,dst=/var/cache/rpm-ostree,id=rpm-ostree-cache-template-39,sharing=locked   source /tmp/scripts/exports.sh   && /tmp/scripts/run_module.sh files '{"type":"files","files":[{"usr":"/usr"}]}'
Error: type=bind,from=ghcr.io/blue-build/cli:-build-scripts,src=/scripts/,dst=/tmp/scripts/ from=ghcr.io/blue-build/cli:-build-scripts: no stage or image found with that name
ERROR => Failed to build template:local-39

When I clone this repo, checkout to v0.8.6 and cargo build --release, the build completes without error.

❯ ./target/release/bluebuild --version
BlueBuild 0.8.6
branch:main
commit_hash:
build_time:2024-05-04 21:51:41 -04:00
build_env:rustc 1.78.0 (9b00956e5 2024-04-29),stable-x86_64-unknown-linux-gnu
❯ bluebuild build ./recipes/recipe.yml
# ...
INFO  => Successfully built template:local-39
INFO  => Successfully tagged template:local-39!
INFO  => Build complete!
@gmpinder gmpinder self-assigned this May 5, 2024
@gmpinder gmpinder added priority: critical Should be done as soon as possible type: bug Something isn't working. state: in-progress Work has started labels May 5, 2024
@gmpinder gmpinder linked a pull request May 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: critical Should be done as soon as possible state: in-progress Work has started type: bug Something isn't working.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants