The initial problem was introduced by me. I was trying to use go:embed in some tests without globally changing go version from 1.13 to 1.17. So I created a dedicated go.mod file for testdata/firmware (which uses go:embed). And to make things transparent, I did replace:
But it appears testdata/firmware currently works only inside the repository. While when I try to reach github.com/9elements/converged-security-suite/v2/testdata/firmware externally I get:
$ go get github.com/9elements/converged-security-suite/v2/testdata/firmware@v0.0.0-00010101000000-000000000000
go get: github.com/9elements/converged-security-suite/v2/testdata/firmware@v0.0.0-00010101000000-000000000000: invalid version: unknown revision 000000000000
And in attempts of tuning the revision and version which works both internally and externally, I came up with this solution.
The initial problem was introduced by me. I was trying to use
go:embed
in some tests without globally changing go version from 1.13 to 1.17. So I created a dedicatedgo.mod
file fortestdata/firmware
(which usesgo:embed
). And to make things transparent, I didreplace
:and
But it appears
testdata/firmware
currently works only inside the repository. While when I try to reachgithub.com/9elements/converged-security-suite/v2/testdata/firmware
externally I get:And in attempts of tuning the revision and version which works both internally and externally, I came up with this solution.