go plugin is not striping the .git from the source

Bug #1591565 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

When I use a source for the go plugin like this:

source: https://github.com/cloudfoundry/cli.git

It will use cli.git as the go package. Notice the ".git" in the last argument:

env GOPATH=/home/elopio/workspace/canonical/snappy-playpen/cloudfoundry-cli/parts/cli/go go get -t -d ./cli.git/...

Revision history for this message
Daniel Holbach (dholbach) wrote :

Does using go-importpath help here? Or is this something which should be fixed still?

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Is this still valid?

Changed in snapcraft:
status: New → Incomplete
Revision history for this message
Leo Arias (elopio) wrote :

Yes sir, it is.

Changed in snapcraft:
status: Incomplete → New
Revision history for this message
Kyle Fazzari (kyrofa) wrote :

I'm also curious if `go-importpath` helps here.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.