On 09.08.2016 07:46, Ian Booth wrote: > Hi folks > > Firstly, thanks for the recent godeps plugin. > > I'd like to be able to control where the git checkout goes, or better just > snap > from source. When the pull step runs, it places all the source into > <snapcraft-dir>/parts/juju/go/src > > It takes a loooong time to checkout everything and then run godeps, especially > when godeps runs to pull all the dependencies one by one. > > I'd love to be able to have the plugin be able to use an existing source tree > in > my gopath which I have checked out and already pulled dependencies for (ie the > place where I work with my IDE). That way my workflow could be to hack on my > code locally, and then build the snap directly from source on disk; godeps > will > just skip over almost all the dependencies since they already exist. > > I can see that snapcraft supports source types of git, bzr, hg, svn, tar, or > zip. > I really want a source type of "file" and I give it a directory like > ~/projects/juju/go/src
You could just specify: source: . to build from the same directory the snapcraft.yaml file is in or specify another dir like source: /home/ubuntu/my-source-checkout But not really sure if that works for Go as well and if the GOPATH is correctly setup. regards, Simon > The above would be used in lieu of <snapcraft-dir>/parts/juju/go/src > > By having a source type of "file", the git pull step would not be required and > my local development workflow would be much better and faster - hack in my > IDE, > build snap, test etc. > > Is there a way to do that now that I am not aware of, or is this a "patches > accepted" thing? > -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft