Giter Club home page Giter Club logo

Comments (6)

mattmoor avatar mattmoor commented on June 9, 2024

Could this just be that ko needs to be rebuilt with a modern version of the go stdlib?

from ko.

imjasonh avatar imjasonh commented on June 9, 2024

This seems like a likely explanation. The error seems to be coming from here, where we call packages.Load which comes from the stdlib the binary was built with:

return fmt.Errorf("error loading package from %s: %w", ref.Path(), err)

The good news is that we're building with 1.21 now, since #1137, which just needs to be released.

from ko.

upodroid avatar upodroid commented on June 9, 2024

The good news is that we're building with 1.21 now, since #1137, which just needs to be released.

That PR was included in the 0.15.1 release which the action is installing but the error is still there. hmm 😕

from ko.

imjasonh avatar imjasonh commented on June 9, 2024

Weird, I'm not able to reproduce with the latest ko

$ ko version
0.15.1
$ ko build ./cmd/guard-service/
2023/11/27 22:37:33 Building knative.dev/security-guard/cmd/guard-service for linux/amd64
2023/11/27 22:37:49 Publishing gcr.io/jason-chainguard/guard-service-47f58423958863b1c974ec4e098984f3:latest
2023/11/27 22:38:11 existing blob: sha256:250c06f7c38e52dc77e5c7586c3e40280dc7ff9bb9007c396e06d96736cf8542
2023/11/27 22:38:13 pushed blob: sha256:d9cdc672ff75d2eb63aa285cae4155be88829798d244518fd3e60da60f9fb2f4
2023/11/27 22:38:13 pushed blob: sha256:82d2e829cf186480df810fb120895daa35c86e73f45e67e4849dbf793a18d635
...

Is it possible your Go version is pre-1.21?

$ go version
go version go1.21.4 darwin/arm64

from ko.

davidhadas avatar davidhadas commented on June 9, 2024

Thanks!
It seems the problem was indeed that go 1.19 was used for the tests.
(e2e test was using 1.19)
Fixed by knative-extensions/security-guard#265

from ko.

imjasonh avatar imjasonh commented on June 9, 2024

Great to hear! So it's more about the Go version installed than the ko version, which is nice.

Thanks for following up!

from ko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.