unpackerr: Malformed module reference when building from latest source
I picked up a new error today in my build from latest source on Alpine Linux 3.11. This appeared since v0.8.0-beta2.
build github.com/davidnewhall/unpackerr: cannot load io/fs: malformed module path "io/fs": missing dot in first path element
This happened when executing go build -o /build/unpackerr -ldflags "-w -s"
since my last successful build on 2021-03-19. Alpine Linux version hasn’t changed for this build pipeline recently so I’m wondering if there is an upstream package dependency issue.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16
Apparently
io/fs
was added in Go 1.16: https://benjamincongdon.me/blog/2021/01/21/A-Tour-of-Go-116s-iofs-package/I rolled that back to using an older
os
thing instead, so the 1.16 stuff is “gone” now. This is why it failed on 1.13.