Comments (4)
I think the codelab should be using ///go//tools:please_go
rather than ///go//tools/please_go
. One uses the pre-built binary, and the other builds it from source.
Though these days you can just use puku which should resolve this all for you with puku sync -w
:
https://github.com/please-build/puku
from please.
I wonder if this is related to tools/please_go/packageinfo/packageinfo.go using slices here because it looks like slices only supports go 1.21 and higher and in my please project I'm using go 1.20.14?
// In third_party/go/BUILD
go_toolchain(
name = "toolchain",
version = "1.20.14",
)
Is it the case that please_go
only supports go 1.21 and higher?
from please.
Yes, this seems to be it! When I change my please go toolchain to go 1.22.1 things work:
// In third_party/go/BUILD
go_toolchain(
name = "toolchain",
# version = "1.20.14",
version = "1.22.1",
)
now I can run
zsh> plz run ///go//tools/please_go -- get github.com/stretchr/[email protected]
go_repo(module="github.com/stretchr/objx", version="v0.5.0")
go_repo(module="gopkg.in/yaml.v3", version="v3.0.1")
go_repo(module="gopkg.in/check.v1", version="v0.0.0-20161208181325-20d25e280405")
go_repo(module="github.com/stretchr/testify", version="v1.8.2")
go_repo(module="github.com/davecgh/go-spew", version="v1.1.1")
go_repo(module="github.com/pmezard/go-difflib", version="v1.0.0")
But I still need to get please to work with go 1.20.14. :-(
I am currently running please 17.8.3. Does that only support go1.21 and higher? And if so how can I get please_go to work with go 1.20.14?
Thanks!
from please.
This seems to be an issue with please_go
here as slices wasn't added to go until 1.21 but that PR lists go 1.20?
from please.
Related Issues (20)
- Support instantiation_stack when querying HOT 1
- Panic / segfault when using query command with --arch option that doesn't match the platform
- Intermediate build results (phase A and B) HOT 6
- Tools not found with --shell & remote execution
- .plzconfig key with empty value HOT 4
- review Go analysis.Pass.Module proposal HOT 1
- Adding please to a large repo - how to migrate to please and best practices for upkeep HOT 3
- SLSA and Provenance attestation data for builds HOT 3
- pkl + plz: multi-directory genrule outs HOT 2
- plz clean doesn't remove LinkGeneratedSources'ed links HOT 3
- plz query codelab still references go_get()
- plz init still suggests getting auxiliary rules from the Pleasings repo
- Support for tab escape charcter missing. HOT 1
- List concatenation bug HOT 1
- Race condition when depending on rules created in post_build. HOT 1
- release 17.8.7, please_tools_17.8.7_linux_arm64.tar.xz contains please_sandbox built for amd64
- `get_entry_points` doesn't account for entry points added by post-build functions
- Error "Empty source path" when using go toolchain following Getting started with Go CodeLab
- f-strings produce inconsistent output for some object types HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from please.