Feature Request: Specify alternate location of snapcraft config file (snapcraft.yaml)

I would very much like to have two different yaml files for snapcraft:

  • A “main” snapcraft.yaml intended for building a production snap
  • A “dev” snapcraft.dev.yaml indended for build a snap from local source

It seems like a significant missing feature that you can’t direct snapcraft where the main configuration yaml is located.

For example, docker allows you to specify an alternate location for the Dockerfile (Dockerfile-dev, for example). This is very convenient for building using similar but subtly different configurations.

I propose adding an -f/--file base option to snapcraft to specify an alternate location for the main config to build from.