** Changed in: snapcraft
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1583426
Title:
can't load package when building a go project
Status in Snapcraft:
Fix Released
Status in snapcraft package in Ubuntu:
Fix Released
Status in snapcraft source package in Xenial:
Fix Committed
Status in snapcraft source package in Yakkety:
Fix Released
Bug description:
I'm trying to make a snap for hashicorp's vault.
This is the error I'm getting:
env GOPATH=/home/elopio/workspace/canonical/snaps/vault/parts/vault/go go get
-t -d ./vault.git/...
can't load package: package vault.git: code in directory
/home/elopio/workspace/canonical/snaps/vault/parts/vault/go/src/vault.git
expects import "github.com/hashicorp/vault"
Command '['/bin/sh', '/tmp/tmpwyqwm_y3', 'env',
'GOPATH=/home/elopio/workspace/canonical/snaps/vault/parts/vault/go',
'go', 'get', '-t', '-d', './vault.git/...']' returned non-zero exit
status 1
This is the snapcraft.yaml I'm using:
name: vault-elopio
version: snap0.1
summary: Vault is a tool for securely accessing secrets.
description: bla
apps:
vault:
command: bin/vault
plugs: [network, network-bind]
parts:
vault:
plugin: go
source: https://github.com/hashicorp/vault.git
[Impact]
* Some go projects can't be easily build.
* The workaround is hard to find, it should be clearer what to do for
these projects.
[Test Case]
* Create a snapcraft with the vault yaml from this bug.
* Add the new go-importpath field.
* Run snapcraft.
* Verify that you get a usable snap.
[Regression Potential]
* This could affect other go projects.
To manage notifications about this bug go to:
https://bugs.launchpad.net/snapcraft/+bug/1583426/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~group.of.nepali.translators
Post to : [email protected]
Unsubscribe : https://launchpad.net/~group.of.nepali.translators
More help : https://help.launchpad.net/ListHelp