Git Product home page Git Product logo

Comments (6)

michaelboyd2 avatar michaelboyd2 commented on June 12, 2024

This would be great! I'm trying to depend on this package and I get

ERROR: /private/var/tmp/_bazel_michaelboyd/434a1d89a09ded4ce4e377feb4b142e7/external/com_github_lestrrat_go_jwx/x25519/BUILD.bazel:3:11: GoCompilePkg external/com_github_lestrrat_go_jwx/x25519/x25519.a failed: (Exit 1): builder failed: error executing command (from target @com_github_lestrrat_go_jwx//x25519:x25519) bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/go_sdk/builder_reset/builder compilepkg -sdk external/go_sdk -installsuffix darwin_arm64 -src external/com_github_lestrrat_go_jwx/x25519/x25519.go ... (remaining 36 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/com_github_lestrrat_go_jwx/x25519/x25519.go:87:28: undefined: curve25519.X25519
external/com_github_lestrrat_go_jwx/x25519/x25519.go:87:52: undefined: curve25519.Basepoint
compilepkg: error running subcommand external/go_sdk/pkg/tool/darwin_arm64/compile: exit status 2

Not 100% sure if it is a problem with this package though - might be something do do with golang/x/crypto.

from jwx.

lestrrat avatar lestrrat commented on June 12, 2024

@michaelboyd2 I know what that means. You (or me, somewhere in this package) are using an old version of Go. I forget which version exactly, but it needs to be updated to a recent version to get those symbols

from jwx.

michaelboyd2 avatar michaelboyd2 commented on June 12, 2024

Thanks, I was intending to be using 1.19.5 but perhaps I am making some mistake. I will investigate.

from jwx.

lestrrat avatar lestrrat commented on June 12, 2024

@michaelboyd2 FYI there's a half-baked version of bazel-ized jwx in the bazel branch. Please take a look if you are interested.

from jwx.

michaelboyd2 avatar michaelboyd2 commented on June 12, 2024

@lestrrat thanks I fixed my problem, I just had some deps in the wrong order - your comment helped.

I had a look at the bazel branch it worked well for me: build, test, gazelle. Looks good to me.

Maybe consider adding a .bazelversion? There are also things like https://blog.aspect.dev/bazelrc-presets, https://github.com/keith/buildifier-prebuilt and https://github.com/aspect-build/bazel-super-formatter that probably you don't need to bother with.

from jwx.

lestrrat avatar lestrrat commented on June 12, 2024

@michaelboyd2 thank you! I suppose .bazelversion is a no-brainer. I'll look into the presets. The latter two I think I can wait until somebody who actually needs them comes along :)

from jwx.

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.