File name breaking go modules

Bug #1821959 reported by James Jesudason
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Medium
Unassigned

Bug Description

When running go modules command from another project there is a file that's breaking the integration:

```
go get github.com/snapcore/snapd/asserts latest
go get latest: unrecognized import path "latest" (import path does not begin with hostname)
go: finding github.com/snapcore/snapd/asserts latest
go: finding github.com/snapcore/snapd latest
go: extracting github.com/snapcore/snapd v0.0.0-20190327122014-ef87afe95139
-> unzip /Users/jjesudason/go/pkg/mod/cache/download/github.com/snapcore/snapd/@v/v0.0.0-20190327122014-ef87afe95139.zip: malformed file path "cmd/snap-confine/spread-tests/distros/debian.": trailing dot in path element
go get github.com/snapcore/snapd/asserts: unzip /Users/jjesudason/go/pkg/mod/cache/download/github.com/snapcore/snapd/@v/v0.0.0-20190327122014-ef87afe95139.zip: malformed file path "cmd/snap-confine/spread-tests/distros/debian.": trailing dot in path element
```

This file `cmd/snap-confine/spread-tests/distros/debian.` has a trailing full stop.

Revision history for this message
John Lenton (chipaca) wrote :

Why are you using snapd as a library?

affects: snappy → snapd
Revision history for this message
James Jesudason (jamesj) wrote :

It gets used for multiple projects that need assertions. The Serial Vault is one, and I'm also working on an agent that uses snapd API. The agent uses assertions as a part of the device identification with a cloud service.

Zygmunt Krynicki (zyga)
Changed in snapd:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Igor Komlew (glower) wrote :

Any update on this? I have the same problem updating https://github.com/CanonicalLtd/serial-vault to the `go mod` and pin version of snapd

Revision history for this message
Ian Johnson (anonymouse67) wrote :

This should be fixed in recent snapd master, the PR that fixed this was: https://github.com/snapcore/snapd/pull/7634

Changed in snapd:
milestone: none → 2.43.1
status: Confirmed → Fix Committed
Revision history for this message
Kristian Glass (doismellburning) wrote :

Looks like it's fixed in https://github.com/snapcore/snapd/commit/4e8d74d5f6a37c31b48f0a34d5793d95e92db6c4 and awaiting release - thanks Zygmunt!

Revision history for this message
Kristian Glass (doismellburning) wrote :

Apologies, I missed your update there Ian - thanks

Zygmunt Krynicki (zyga)
Changed in snapd:
status: Fix Committed → Fix Released
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.