← Back to issue list

build providers: enforce well-known temp dir

View original Github issue

Metadata

Project
snapcraft
Number
#2607
Type
pull request
State
merged
Author
mtmiller
Labels
Created
Updated
Closed

Current evaluation

Merged into master to enforce a fixed temporary directory path for build providers, preventing copy failures when users configure non-standard temp directories. Approved by reviewer, passed CI, and resolves LP #1833292.

Suggested action:

No scores available.

Issue body

Use a fixed well-known path for temporary files when copying files to the build provider. If the user environment specifies a non-standard temporary directory, the file may fail to copy to a multipass instance. LP: #1833292 Signed-off-by: Mike Miller <mtmiller@debian.org> - [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] Have you successfully run `./runtests.sh static`? - [x] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged into master to enforce a fixed temporary directory path for build providers, preventing copy failures when users configure non-standard temp directories. Approved by reviewer, passed CI, and resolves LP #1833292.
qwen3.6-35b-a3b-mtp-q6 Merged into master. Enforces a fixed temporary directory path for build providers to prevent copy failures with non-standard user temp directories. Resolves LP #1833292. Passed unit tests with 100% diff coverage.
qwen3.6-35b-a3b-mtp-q6 Merged into master. Enforces a fixed well-known temporary directory path for build providers to prevent file copy failures with non-standard user environments. Resolves LP #1833292. Achieved 100% diff coverage.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3434 build providers: clean environment if project directory is changed snapcraft merged Merged into master. Fixes environment cleanup when project directories are relocated or reused. The build provider now tracks the directory path, verifies compatibility, and automatically cleans the environment on mismatch. Approved and passed CI.
74%