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

Pack build on windows fails when using --report-output-dir #1731

Open
tomkennedy513 opened this issue Apr 19, 2023 · 1 comment
Open

Pack build on windows fails when using --report-output-dir #1731

tomkennedy513 opened this issue Apr 19, 2023 · 1 comment
Labels
help wanted Need some extra hands to get this done. os/windows status/ready Issue ready to be worked on. type/bug Issue that reports an unexpected behaviour.

Comments

@tomkennedy513
Copy link

Summary

When running pack build with the --report-output-dir flag on windows, I get a no such container error:

ERROR: failed to build: executing lifecycle: Error: No such container:path: 14975acacb3073150076a8e713e40b5975ff09ebc9ad9bc0ad4c1bbf9287f76c:c:\layers\report.toml

Reproduction

Steps

I ran this command on a windows github action runner

pack build gcr.io/cf-build-service-public/kpack-dev/build-init-windows \
--builder gcr.io/dotnet-build-gcp/go-multios/builder-windows \
 --env BP_GO_LDFLAGS="-X 'github.com/pivotal/kpack/cmd.Version=dev' -X 'github.com/pivotal/kpack/cmd.Commit=some-commit'" \
--env BP_GO_TARGETS=".\cmd\build-init;.\cmd\network-wait-launcher" \
--report-output-dir . \
--cache-image gcr.io/cf-build-service-public/kpack-dev/build-init-windows-cache \
--publish --trust-builder
Current behavior

I got an error ERROR: failed to build: executing lifecycle: Error: No such container:path: 14975acacb3073150076a8e713e40b5975ff09ebc9ad9bc0ad4c1bbf9287f76c:c:\layers\report.toml

Expected behavior

I expected the report.toml to be saved to the runner like it does with Linux


Environment

This is running on a windows-2019 GHA runner with pack v0.29.0 installed

@tomkennedy513 tomkennedy513 added status/triage Issue or PR that requires contributor attention. type/bug Issue that reports an unexpected behaviour. labels Apr 19, 2023
@joe-kimmel-vmw
Copy link
Contributor

joe-kimmel-vmw commented Apr 19, 2023

Thanks for filing this bug report!

I looked into this a little and it seemed to me that I was able to reproduce it with a simple windows build and that both the sbom output dir and reports output dir flags were broken, but I wasn't able to quickly find a root cause or solution.

@jjbustamante jjbustamante added status/ready Issue ready to be worked on. os/windows and removed status/triage Issue or PR that requires contributor attention. labels Aug 14, 2023
@natalieparellano natalieparellano added the help wanted Need some extra hands to get this done. label Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Need some extra hands to get this done. os/windows status/ready Issue ready to be worked on. type/bug Issue that reports an unexpected behaviour.
Projects
None yet
Development

No branches or pull requests

4 participants