Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
0f9a6f8
Upgrade cc-rules plugin to v0.5.3 (#3433)
chrisnovakovic Oct 23, 2025
f573307
Bump arcat to v1.3.0 (#3441)
chrisnovakovic Oct 28, 2025
b46e5de
Tag v17.23.0 (#3442)
chrisnovakovic Oct 28, 2025
4fec6ab
Define `PLZ_ENV` in build environments (#3444)
chrisnovakovic Oct 29, 2025
c298f63
Use cc-rules v0.5.4 (#3445)
chrisnovakovic Oct 30, 2025
8cebc1f
Bump cc-rules plugin to v0.6.0 (#3450)
chrisnovakovic Nov 6, 2025
45c3a27
Implement run-time dependencies for binary targets (#3451)
chrisnovakovic Nov 13, 2025
1b190e9
Tag v17.24.0 (#3452)
chrisnovakovic Nov 13, 2025
c550b0b
Download run-time dependencies when running a target remotely (#3453)
chrisnovakovic Nov 14, 2025
5f970f9
Tag v17.24.1 (#3454)
chrisnovakovic Nov 14, 2025
1dbd2bc
Bump golang.org/x/crypto from 0.36.0 to 0.45.0 (#3455)
dependabot[bot] Nov 20, 2025
e1afda3
Bump Go toolchain to 1.24.10 (#3456)
chrisnovakovic Nov 20, 2025
58cfa4b
Clean up pleasew platform detection logic (#3458)
chrisnovakovic Nov 25, 2025
7817009
Tag v17.24.2 (#3459)
chrisnovakovic Nov 25, 2025
5004307
Add `maxdepth` parameter to `get_labels` function (#3460)
chrisnovakovic Nov 27, 2025
8d8fa41
Tag v17.25.0 (#3461)
chrisnovakovic Nov 27, 2025
b9102bd
Upgrade arcat to v1.3.1 (#3462)
chrisnovakovic Nov 28, 2025
29492e7
Tag v17.25.1 (#3463)
chrisnovakovic Nov 28, 2025
336e6c3
Bump cc-rules plugin to v0.7.1 (#3464)
chrisnovakovic Nov 28, 2025
7872c83
CI: use FreeBSD 14.3-RELEASE runner on Cirrus CI (#3467)
chrisnovakovic Dec 9, 2025
bc8092a
Optionally traverse `srcs` and `deps` for run-time dependencies (#3466)
chrisnovakovic Dec 9, 2025
ecfb2f6
Tag v17.26.0 (#3468)
chrisnovakovic Dec 9, 2025
9c324cc
Traverse `data` and `debug_data` for run-time dependencies (#3469)
chrisnovakovic Dec 9, 2025
c455b27
Tag v17.27.0 (#3470)
chrisnovakovic Dec 9, 2025
9ff11a5
pleasew: find repo root by traversing up from PWD (#3474)
simonfxr Dec 18, 2025
b4b1657
Ensure the dir we're exporting to exists (#3345)
Tatskaari Dec 23, 2025
cb2d9a2
Switch Please to use m4pro.medium resource class on CircleCI (#3477)
toastwaffle Jan 16, 2026
57a4e17
fix: set only one hash per version to "arcat" binary for compatibilit…
njskalski Feb 4, 2026
9b30492
Add regular expression support for strings (#3486)
cemeceme Feb 12, 2026
82abde4
Remove redundant text from Python codelab conclusion
scyyx5 Feb 18, 2026
da14ac4
update codelab
scyyx5 Oct 23, 2025
93f5d86
Revise genrule documentation
scyyx5 Oct 24, 2025
e24fa5b
Update codelab for managing Go dependencies with Puku
scyyx5 Oct 25, 2025
4ea1416
Normalize line endings
scyyx5 Oct 25, 2025
6bffc5b
revert changes
scyyx5 Oct 25, 2025
839de55
change format
Nov 10, 2025
f7ccaf4
fix typo
Nov 10, 2025
123c45a
Remove redundant text from Python codelab conclusion
scyyx5 Feb 18, 2026
530d640
Merge branch 'update-codelab-docs' of https://github.com/scyyx5/pleas…
scyyx5 Feb 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
working_directory: ~/please
macos:
xcode: "16.4.0"
resource_class: macos.m1.medium.gen1
resource_class: m4pro.medium
steps:
- checkout
- attach_workspace:
Expand Down Expand Up @@ -206,7 +206,7 @@ jobs:
build-darwin:
macos:
xcode: "16.4.0"
resource_class: macos.m1.medium.gen1
resource_class: m4pro.medium
environment:
PLZ_ARGS: "--profile ci --exclude pip --exclude embed"
steps:
Expand Down
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
freebsd_instance:
image_family: freebsd-14-2
image_family: freebsd-14-3

env:
GOPROXY: https://proxy.golang.org
Expand Down
34 changes: 34 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
Version 17.27.0
---------------
* Traverse `data` and `debug_data` for run-time dependencies (#3469)

Version 17.26.0
---------------
* Optionally traverse `srcs` and `deps` for run-time dependencies (#3466)

Version 17.25.1
---------------
* Bump arcat to v1.3.1, fixing a bug relating to symbol table stripping on Darwin and FreeBSD (#3462)

Version 17.25.0
---------------
* Add `maxdepth` parameter to `get_labels` built-in, allowing for recursive dependency searches to be depth-limited (#3460)

Version 17.24.2
---------------
* Improve platform detection logic in `plz init`'s `pleasew` script (#3458)

Version 17.24.1
---------------
* Download run-time dependencies when running a target remotely (#3453)

Version 17.24.0
---------------
* Define `PLZ_ENV` environment variable in build environments (#3444)
* Strip symbols from please_sandbox release binaries (#3450)
* Implement run-time dependencies for binary targets via the `runtime_deps` parameter (#3451)

Version 17.23.0
---------------
* Bump arcat to v1.3.0, adding the `--include` option to the `zip` command (#3441)

Version 17.22.0
---------------
* Add `--audit_log_dir` option for logging of Please invocations, build commands and remote file fetching (#3425)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17.22.0
17.27.0
2 changes: 1 addition & 1 deletion docs/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ plugins = {
"python": "v1.14.0",
"java": "v0.4.5",
"go": "v1.26.0",
"cc": "v0.5.2",
"cc": "v0.7.1",
"shell": "v0.2.0",
"go-proto": "v0.3.0",
"python-proto": "v0.1.0",
Expand Down
4 changes: 0 additions & 4 deletions docs/codelabs/python_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,3 @@ determine files changes since master, watch rules and build them automatically a
`plz help`, and explore this rich set of commands!

Otherwise, why not try one of the other codelabs!
, watch rules and build them automatically as things change and much more! Use
`plz help`, and explore this rich set of commands!

Otherwise, why not try one of the other codelabs!
9 changes: 9 additions & 0 deletions docs/lexicon.html
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,15 @@ <h3 class="title-3">
- returns a copy of this string converted to lowercase.
</span>
</li>
<li>
<span>
<code class="code"
><span class="fn-name">matches</span><span class="fn-p">(</span
><span class="fn-arg">pattern</span><span class="fn-p">)</span></code
>
- returns true if the string matches the regular expression given by <code class="code">pattern</code>.
</span>
</li>
</ul>
</section>

Expand Down
16 changes: 8 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/thought-machine/please

go 1.23.0
go 1.24.0

require (
cloud.google.com/go/longrunning v0.5.5
Expand Down Expand Up @@ -47,11 +47,11 @@ require (
github.com/zeebo/blake3 v0.2.3
go.uber.org/automaxprocs v1.5.3
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225
golang.org/x/net v0.38.0
golang.org/x/sync v0.12.0
golang.org/x/sys v0.31.0
golang.org/x/term v0.30.0
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d
golang.org/x/net v0.47.0
golang.org/x/sync v0.18.0
golang.org/x/sys v0.38.0
golang.org/x/term v0.37.0
golang.org/x/tools v0.38.0
google.golang.org/genproto/googleapis/bytestream v0.0.0-20240304212257-790db918fca8
google.golang.org/genproto/googleapis/rpc v0.0.0-20240304212257-790db918fca8
google.golang.org/grpc v1.62.1
Expand Down Expand Up @@ -103,9 +103,9 @@ require (
go.opentelemetry.io/otel/metric v1.24.0 // indirect
go.opentelemetry.io/otel/sdk v1.22.0 // indirect
go.opentelemetry.io/otel/trace v1.24.0 // indirect
golang.org/x/crypto v0.36.0 // indirect
golang.org/x/crypto v0.45.0 // indirect
golang.org/x/oauth2 v0.27.0 // indirect
golang.org/x/text v0.23.0 // indirect
golang.org/x/text v0.31.0 // indirect
golang.org/x/time v0.5.0 // indirect
google.golang.org/api v0.168.0 // indirect
google.golang.org/genproto v0.0.0-20240304212257-790db918fca8 // indirect
Expand Down
28 changes: 14 additions & 14 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34=
golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc=
golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q=
golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 h1:LfspQV/FYTatPTr/3HzIcmiUFH7PGP+OQ6mgDYo3yuQ=
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225/go.mod h1:CxmFvTBINI24O/j8iY7H1xHzx2i4OsyguNBmN/uPtqc=
Expand Down Expand Up @@ -334,8 +334,8 @@ golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLd
golang.org/x/net v0.0.0-20210505214959-0714010a04ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.3.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE=
golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8=
golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY=
golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.27.0 h1:da9Vo7/tDv5RH/7nZDz1eMGS/q1Vv1N/7FCrBhI9I3M=
golang.org/x/oauth2 v0.27.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
Expand All @@ -346,8 +346,8 @@ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw=
golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I=
golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
Expand Down Expand Up @@ -375,21 +375,21 @@ golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA=
golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y=
golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g=
golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU=
golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=
golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4=
golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM=
golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM=
golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk=
golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
Expand All @@ -405,8 +405,8 @@ golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4f
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.4.0/go.mod h1:UE5sM2OK9E/d67R0ANs2xJizIymRP5gJU295PvKXxjQ=
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg=
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
golang.org/x/tools v0.38.0 h1:Hx2Xv8hISq8Lm16jvBZ2VQf+RLmbd7wVUsALibYI/IQ=
golang.org/x/tools v0.38.0/go.mod h1:yEsQ/d/YK8cjh0L6rZlY8tgtlKiBNTL14pGDJPJpYQs=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down
85 changes: 52 additions & 33 deletions pleasew
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,44 @@ else
RESET=''
fi

OS=""
ARCH=""

case "$(uname)" in
Linux)
OS=linux
case "$(uname -m)" in
x86_64) ARCH=amd64 ;;
aarch64*|armv8b|armv8l) ARCH=arm64 ;;
esac
;;
Darwin)
OS=darwin
case "$(uname -m)" in
x86_64) ARCH=amd64 ;;
arm64) ARCH=arm64 ;;
esac
;;
FreeBSD)
OS=freebsd
case "$(uname -m)" in
amd64) ARCH=amd64 ;;
esac
;;
*)
printf >&2 '%bPlease does not support the %s operating system.%b\n' \
"${RED}" "$(uname)" "${RESET}"
exit 1
;;
esac

DEFAULT_URL_BASE='https://get.please.build'

OS="$(uname)"

if [ "${OS}" = 'Darwin' ]; then
# switch between mac amd64/arm64
ARCH="$(uname -m)"
else
# default to amd64 on other operating systems
# because we only build intel binaries
ARCH='amd64'
if [ -z "$ARCH" ]; then
printf >&2 '%bPlease does not support the %s architecture on %s.%b\n' \
"${RED}" "$(uname -m)" "$(uname)" "${RESET}"
exit 1
fi

case "${ARCH}" in
aarch64_be|aarch64|armv8b|armv8l) ARCH='arm64' ;;
x86_64) ARCH='amd64' ;;
esac
DEFAULT_URL_BASE='https://get.please.build'

has_command () {
command -v "${1}" > /dev/null 2>&1
Expand All @@ -54,12 +74,24 @@ get_profile () {
# Check `PLZ_CONFIG_PROFILE` or fall back to arguments for a profile.
PROFILE="${PLZ_CONFIG_PROFILE:-$(get_profile "${@}")}"

# Find repo root by traversing up until we find .plzconfig
find_repo_root() {
dir="$PWD"
while true; do
[ -f "$dir/.plzconfig" ] && echo "$dir" && return 0
[ "$dir" = "/" ] && return 0
dir="$(dirname "$dir")"
done
}

REPO_ROOT="$(find_repo_root)"

# Config files on order of precedence high to low.
CONFIGS="$(cat <<- EOS
.plzconfig.local
${PROFILE:+.plzconfig.${PROFILE}}
.plzconfig_${OS}_${ARCH}
.plzconfig
${REPO_ROOT:+${REPO_ROOT}/.plzconfig.local}
${REPO_ROOT:+${PROFILE:+${REPO_ROOT}/.plzconfig.${PROFILE}}}
${REPO_ROOT:+${REPO_ROOT}/.plzconfig_${OS}_${ARCH}}
${REPO_ROOT:+${REPO_ROOT}/.plzconfig}
${HOME}/.config/please/plzconfig
/etc/please/plzconfig
EOS
Expand Down Expand Up @@ -141,20 +173,7 @@ if [ "${VERSION:+x}" != 'x' ]; then
VERSION=$(${TRANSFER_TOOL} ${TRANSFER_SILENT_OPTS} "${URL_BASE}"/latest_version)
fi

# Find the os / arch to download. You can do this quite nicely with go env
# but we use this script on machines that don't necessarily have Go itself.
if [ "${OS}" = 'Linux' ]; then
GOOS='linux'
elif [ "${OS}" = 'Darwin' ]; then
GOOS='darwin'
elif [ "${OS}" = 'FreeBSD' ]; then
GOOS='freebsd'
else
printf >&2 '%bUnknown operating system %s%b\n' "${RED}" "${OS}" "${RESET}"
exit 1
fi

PLEASE_URL="${URL_BASE}/${GOOS}_${ARCH}/${VERSION}/please_${VERSION}.tar.xz"
PLEASE_URL="${URL_BASE}/${OS}_${ARCH}/${VERSION}/please_${VERSION}.tar.xz"
DIR="${LOCATION}/${VERSION}"

# Potentially we could reuse this but it's easier not to really.
Expand Down
2 changes: 1 addition & 1 deletion plugins/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugin_repo(
plugin_repo(
name = "cc",
plugin = "cc-rules",
revision = "v0.5.2",
revision = "v0.7.1",
)

plugin_repo(
Expand Down
Loading