Snapcraft crashes after defining a local source for a golang project
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
High
|
Sergio Schvezov |
Bug Description
I have a simple snappy project at
https:/
If I do not want to use "source: git://github.
name: go-webserver
vendor: XiaoGuo, Liu <email address hidden>
icon: go.png
version: 1.0.7
summary: Go webserver
description: This is a simple go webserver. It is a service
services:
webserver:
description: "Go websever"
start: bin/golang-http
caps:
- network-client
- network-service
parts:
webserver:
plugin: go
source: ./src/golang-http
Inside the golang-http, it has only one file named "main.go", which can be found at:
https:/
liuxg@liuxg:
Traceback (most recent call last):
File "/usr/bin/
snapcraft.
File "/usr/lib/
args.func(args)
File "/usr/lib/
snap(args)
File "/usr/lib/
cmd(args)
File "/usr/lib/
config = _load_config()
File "/usr/lib/
_config = snapcraft.
File "/usr/lib/
self.
File "/usr/lib/
part_name, plugin_name, properties)
File "/usr/lib/
return PluginHandler(
File "/usr/lib/
self.
File "/usr/lib/
self.code = plugin(self.name, options)
File "/usr/lib/
self.fullname = self.options.
IndexError: list index out of range
liuxg@liuxg:~$ snapcraft version
snapcraft (0.4).
Run "snapcraft help" to get started.
description: | updated |
Changed in snapcraft: | |
milestone: | none → 0.5 |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
I think this is a valid use case, so removing the dup.
lets say you have a go project in a local dir, you don't want to go get it . Or, lets say you put your snapcraft.yaml in github, in the same repo as your go code, so github clone already downloaded the code, you don't want go get to bring it too. And maybe you cloned and checked out a branch, not master...