Snapd can no longer be imported as a Go module

Bug #1948838 reported by William Wilson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
High
Burak Ates

Bug Description

The new ubuntu-image uses snapd as a go module. Somewhere between snapd versions 2.52 and 2.53 an error appeared when trying to import snapd as a Go module:

go: <email address hidden>: verifying go.mod: <email address hidden>/go.mod: reading https://<email address hidden>: 410 Gone
        server response:
        not found: create zip: tests/completion/data/twisted/this isn't.innit: malformed file path "tests/completion/data/twisted/this isn't.innit": invalid char '\''
        tests/main/validate-container-failures/test-snapd-validate-container-failures/hell/bar -> baz: malformed file path "tests/main/validate-container-failures/test-snapd-validate-container-failures/hell/bar -> baz": invalid char '>'
        tests/main/validate-container-failures/test-snapd-validate-container-failures/hell/bar -> baz -> qux: malformed file path "tests/main/validate-container-failures/test-snapd-validate-container-failures/hell/bar -> baz -> qux": invalid char '>'
        [Truncated: too long.]
go: downloading github.com/snapcore/snapd v0.0.0-20211005183232-63c82c0ab196
go: <email address hidden>: verifying go.mod: <email address hidden>/go.mod: reading https://<email address hidden>: 410 Gone
        server response:
        not found: create zip: tests/completion/data/twisted/this isn't.innit: malformed file path "tests/completion/data/twisted/this isn't.innit": invalid char '\''
        tests/main/validate-container-failures/test-snapd-validate-container-failures/hell/bar -> baz: malformed file path "tests/main/validate-container-failures/test-snapd-validate-container-failures/hell/bar -> baz": invalid char '>'
        tests/main/validate-container-failures/test-snapd-validate-container-failures/hell/bar -> baz -> qux: malformed file path "tests/main/validate-container-failures/test-snapd-validate-container-failures/hell/bar -> baz -> qux": invalid char '>'
        [Truncated: too long.]

We're using a git meta-version From Aug 24 2021 for now, but when we need to pull in newer code from snapd at some point this will need to be fixed.

Revision history for this message
William Wilson (jawn-smith) wrote :

This is currently blocking the addition of the --validation flag in the Go version of ubuntu-image.

Changed in snappy:
importance: Undecided → Critical
Revision history for this message
Michael Vogt (mvo) wrote :

I think we need to tar up the "strange" symlinks and dirs we use for testing and only extract them into a temp dir for the tests, not having them in the source tree.

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Thank you for looking into that Michael! Could you give us a heads up once that's done?

Changed in snappy:
status: New → Confirmed
Changed in snapd:
assignee: nobody → Burak Ates (atesburak)
status: New → Confirmed
importance: Undecided → High
no longer affects: snappy
Revision history for this message
Hao Wang (soccerhaotian) wrote :

Hi there, a github issue depends on this bug fix, https://github.com/canonical/ubuntu-image-legacy/pull/202. Can you please share when this bug fix will be released? Thanks :)

Revision history for this message
Burak Ates (atesburak) wrote :

This issue will be fixed within this week but will likely be included in the next release of snapd.

Revision history for this message
William Wilson (jawn-smith) wrote :

soccerhaotian: As soon as this issue is fixed in snapd I will be preparing an ubuntu-image 2.1 that pulls it in. I'm hoping to get that done next week.

Revision history for this message
Maciej Borzecki (maciek-borzecki) wrote :

https://github.com/snapcore/snapd/pull/11052 landed, the issue should be resolved now.

Changed in snapd:
status: Confirmed → Fix Committed
Changed in snapd:
milestone: none → 2.54
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.