Suggestion: Lets consolidated temporary build directories under one directory 'build'

Hi,

As discussed in #snappy, lets consolidate the temporary build directories (parts, prime, stage, etc.) under a single directory named ‘build’ to avoid cluttering the top level with stuff that really only helps confuse users.

In other words, lets move away from the current structure, as illustrated by this example:

tio
├── parts
├── prime
├── snap
│   └── snapcraft.yaml
├── stage
└── tio_1.27_amd64.snap

To this:

tio
├── build
│   ├── parts
│   ├── prime
│   └── stage
├── snap
│   └── snapcraft.yaml
└── tio_1.27_amd64.snap

One can even consider putting the output snap files in a build/output directory to truly consolidate all build files under the build directory. Likewise, all source tarballs could go into build/source.

4 Likes

I would be happier with

tio
├── snapcraft.yml
└── .snapcraft/
    ├── parts/
    ├── prime/
    ├── stage/
    └── tio_1.27_amd64.snap

And then we can echo .snapcraft/ >>.gitignore and have a clean repository!

parts, stage and prime were meant to be moved into snap to have everything under the same umbrella. If you have time and want to propose that change we will take it :slight_smile: