Hi Andreas, On 1/27/22 3:36 PM, Andreas Tille wrote:
Hi, [...] While upgrading golang-github-blang-semver-dev helped to get rid of some error message inside the build log this
Great
is not the case for the latest version of golang-github-vbauerster-mpb-dev:> [...] -o ./singularity /build/singularity-container-3.9.4+ds1/_build/src/github.com/sylabs/singularity/cmd/singularity ../internal/app/singularity/push.go:23:2: cannot find package "github.com/vbauerster/mpb/v4" in any of:
That's because if you look in singularity's go.mod, it depends on both versions of this package (v4 and v6) see here[1] Ideally, it should have different versioned 'XS-Go-Import-Path' for all versions. For instance as done in blackfriday package see here[4][5] So as far as I can tell, you could do the following: a) Package different versions of both with correct import paths, upload to new and then add B-D on these. b) (Not highly) recommended) Vendor[6] the old version of golang-github-vbauerster-mpb in the vendor directory and use that to build. This is messy but would solve the issue. There's already a vendor dir in that package which already gets a bunch of stuff, so this might not be much worse. c) Port code to the version 7 of this package (which you uploaded) d) Revert your upload to version 6 (where it was earlier) and port the code written with version 4 to 6
Since I'm not a Go programmer I wonder whether somebody could give some helpful hint how to fix this.
Me neither, but hopefully that helped a bit?
PS: I'm not subscribed to debian-go list. Please keep the bug report in CC.
Hope I did enough to reach out to you :-)) Regards, Nilesh
[1] https://salsa.debian.org/hpc-team/singularity-container [2] https://salsa.debian.org/hpc-team/singularity-container/-/jobs/2403226
[3]: https://salsa.debian.org/hpc-team/singularity-container/-/blob/master/go.mod#L48-49 [4]: https://salsa.debian.org/go-team/packages/golang-blackfriday/-/blob/debian/sid/debian/control#L18 [5]: https://salsa.debian.org/go-team/packages/golang-blackfriday-v2/-/blob/debian/sid/debian/control#L17 [6]: https://blog.gopheracademy.com/advent-2015/vendor-folder/
OpenPGP_signature
Description: OpenPGP digital signature