Use a user directory for temporary files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Triaged
|
Low
|
Unassigned |
Bug Description
So i think the parts, prime, stage directories should be placed somewhere where you can configure, and I think they should default to `~/.snapcraft/` or something like that.. I can think of multiple advantages:
- You don't clutter the location of the `snapcraft.yaml` file, which can be annoying if that file is under version control
- You can avoid issues where the location of the `snapcraft.yaml` is mounted using a filesystem that doesn't support all the unix capabilities that might be required during building, or avoid any security blocks that might happen because of the uid/gids of the directory
- if the parts are being pulled via git/bzr, you can keep them in the same place, so that later pulls can be incremental...
Changed in snapcraft: | |
assignee: | nobody → david butler (croepha) |
Changed in snapcraft: | |
importance: | Undecided → Low |
assignee: | david butler (croepha) → nobody |
Yes, this seems like a useful option, though it would not be the
default. You would need to think of how to keep them separate for each
snap you are working on. Patch welcome.
status: triaged