peterebden on master
Update gson (#2472) (compare)
peterebden on master
Experimental static variable an… (compare)
peterebden on master
Migrate other maps to src/cmap … (compare)
peterebden on master
Genericise concurrent map imple… (compare)
peterebden on master
Fix test failures (#2468) * Si… (compare)
We were unable to automatically add Please to the PATH.
so I followed the given advice on installing on the whole system with 'sudo cp ~/.please/bin/* /usr/local/bin
. However, whenever I try to build something, it time out and produces a "plz-out" folder.
17:32:23.679 NOTICE: Build running for 1m10s, 6 / 10 tasks done, 1 worker busy
17:32:33.680 NOTICE: Build running for 1m20s, 6 / 10 tasks done, 1 worker busy
17:32:43.679 NOTICE: Build running for 1m30s, 6 / 10 tasks done, 1 worker busy
17:32:53.680 NOTICE: Build running for 1m40s, 6 / 10 tasks done, 1 worker busy
17:33:03.680 NOTICE: Build running for 1m50s, 6 / 10 tasks done, 1 worker busy
17:33:13.679 NOTICE: Build running for 2m0s, 6 / 10 tasks done, 1 worker busy
17:33:14.181 NOTICE: //_please:download still Extracting... after 2 minutes
target
was not provided
go mod tidy
3) run a shell script, build/go/regen
4) run plz test
. If there are new cycles detected, I resolve those through config. It also makes upgrading versions of dependencies a lot faster, especially when they add new transitive deps.
tool
in a genrule
, but I need to provide source files in the build directory to the container. When I try to pass $PWD
to mount to the container, I'm getting Error: lstat <redacted>._build/plz-out: no such file or directory
. Any pointers?
What is the recommended approach for builds with heterogenous architectures? Ex: Host ARM CPU w/ embedded CPU image (with different arch) ?
This was a common problem at one of my previous companies where CMake was a poor choice because:
please-build
) and also to find other projects people use please for.
github.com/please-build/...
until a comment here a few days ago, and seeing those projects was very helpful to build a plugin
version
from .plzconfig, I added SelfUpdate = false
to .plzconfig ... nothing seems to work. How do I get plz to run with its currently installed version and tools?
Also --noupdate
doesn't work:
plz run --noupdate //src:main
Build stopped after 530ms. 1 target failed:
//_please:_download#download
1 error occurred:
* Error retrieving https://get.please.build/linux_arm64/16.19.0/please_tools_16.19.0.tar.xz: 403 Forbidden
EmbdedTool
which should be EmbedTool
on https://please.build/config.html. As long as FilterTool
, PleaseGoTool
, EmbedTool
are set it uses installed tools.
Hi, I'm able to build a go_binary target with the --arch linux_amd64
flag and a new target is printed to stdout with the OS prefixed. When I try to then build this second target, I still need to include the --arch
flag. Is this the intended functionality?
Here's a quick example:
go_binary(
name = "foo",
srcs = ["hello.go"],
deps = [
"//examples/go/greetings:greetings"
],
)
Given the above target, I run this command and see the following print to stdout:
plz build //examples/go/greetings:foo --arch linux_amd64
Build finished; total time 60ms, incrementality 100.0%. Outputs:
///linux_amd64//examples/go/greetings:foo:
plz-out/bin/linux_amd64/examples/go/greetings/foo
So my question phrased another way - should I be able to run this command below, now excluding the arch flag?
plz build ///linux_amd64//examples/go/greetings:foo
Build stopped after 17.42s. 1 target failed:
///linux_amd64//examples/go/greetings:greetings
Error building target ///linux_amd64//examples/go/greetings:greetings: exit status 1
find: plz-out/bin/tools/golang/1.17.6/pkg/linux_amd64: No such file or directory
compile: -importcfg: open importconfig: no such file or directory
plz run :webserver parallel :webserver-test
, but that's not the same as running plz test :webserver-test
. Any ideas?
pre_build
, is it possible to get the list of transitive dependencies, to be used with $(location ...)
? There doesn’t seem to be a get_deps
function like there is get_labels
. Transitive dependencies are available during build when needs_transitive_deps
is set, but without $(location ...)
it’s a bit hard to get at them, currently using a **/
glob in a Bash for
loop.
labels = ["foo:" + canonicalise(":" + name)],
then get_labels(name, "foo:")
lol :smile:
Is there an example online for using python_wheel? I just tried adding numpy using pip_library, which failed with:
ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly
I'm on an M1 Mac, so I checked against a plain venv: python -m venv foo; cd foo; ./bin/pip install numpy
successfully installs numpy-1.22.3-cp310-cp310-macosx_11_0_arm64.whl, so it looks like an issue with plz
Hi,
I need some help about this function:
// CoverageFile returns the output coverage file for tests for this target.
func (target *BuildTarget) CoverageFile() string {
return path.Join(target.OutDir(), ".test_coverage_"+target.Label.Name)
}
I wanna add coverage in sonar but sonar need Path to the directory containing native *.gcov reports (not the XML reports generated by gcovr)
and please generated file without extension
do you have any advice ?