fix(ci): copy all workspace member manifests in Docker builds #64
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/docker-workspace-member-manifests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The Linux (musl) and Windows binary build workflows for v0.4.0 failed at the dependency-prime layer:
Both
oci-build/Dockerfileandoci-build/Dockerfile.windowspredate the workspace split (YT-16/17/18). They copy onlycrates/yt-cli/Cargo.tomlinto the build context, but the workspace ismembers = ["crates/*"]andyt-clipath-depends onyoutrack-clientandyoutrack-config. Cargo cannot load the workspace at all without every member manifest present, so the priming build fails before compiling anything.Fix
In both Dockerfiles:
yt-cli,youtrack-client,youtrack-config.main.rs+build.rsfor theyt-clibin,lib.rsfor the two libs.src/trees for the actual build.Verification
Built both locally with
docker buildx --target export:oci-build/Dockerfile): 10 MB statically-linked ELF, runs (yt --version->yt 0.4.0),lddreports "statically linked".oci-build/Dockerfile.windows): PE32+ x86-64 console .exe (14 MB).