mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
33e47828e3
* bazel: 0.28.1 --> 1.1.0 * bazel-watcher sha256 * Fix missing line in patch * proto_source_root --> strip_import_prefix See https://github.com/bazelbuild/bazel/issues/7153 for details. * Update rules_nixpkgs Required to avoid errors of the form ``` ERROR: An error occurred during the fetch of repository 'node_nix': parameter 'sep' may not be specified by name, for call to method split(sep, maxsplit = None) of 'string' ``` and ``` ERROR: An error occurred during the fetch of repository 'node_nix': Traceback (most recent call last): File "/private/var/tmp/_bazel_runner/17d2b3954f1c6dcf5414d5453467df9a/external/io_tweag_rules_nixpkgs/nixpkgs/nixpkgs.bzl", line 149 _execute_or_fail(repository_ctx, <3 more arguments>) File "/private/var/tmp/_bazel_runner/17d2b3954f1c6dcf5414d5453467df9a/external/io_tweag_rules_nixpkgs/nixpkgs/nixpkgs.bzl", line 318, in _execute_or_fail fail(<1 more arguments>) Cannot build Nix attribute 'nodejs'. Command: [/Users/runner/.nix-profile/bin/nix-build, /private/var/tmp/_bazel_runner/17d2b3954f1c6dcf5414d5453467df9a/external/node_nix/nix/bazel.nix, "-A", "nodejs", "--out-link", "bazel-support/nix-out-link", "-I", "nixpkgs=/private/var/tmp/_bazel_runner/17d2b3954f1c6dcf5414d5453467df9a/external/nixpkgs/nixpkgs"] Return code: 1 Error output: src/main/tools/process-tools.cc:173: "setitimer": Invalid argument ``` * Update rules_scala * .proto has been removed, use [ProtoInfo] instead See https://docs.bazel.build/versions/1.1.0/be/protocol-buffer.html#proto_library * python3_nix add nix_file attribute To avoid the following error ``` ERROR: /home/aj/tweag.io/da/da-bazel-1.1/BUILD:66:1: //:nix_python3_runtime depends on @python3_nix//:bin/python in repository @python3_nix which failed to fetch. no such package '@python3_nix//': Traceback (most recent call last): File "/home/aj/.cache/bazel/_bazel_aj/5f825ad28f8e070f999ba37395e46ee5/external/io_tweag_rules_nixpkgs/nixpkgs/nixpkgs.bzl", line 149 _execute_or_fail(repository_ctx, <3 more arguments>) File "/home/aj/.cache/bazel/_bazel_aj/5f825ad28f8e070f999ba37395e46ee5/external/io_tweag_rules_nixpkgs/nixpkgs/nixpkgs.bzl", line 318, in _execute_or_fail fail(<1 more arguments>) Cannot build Nix attribute 'python3'. Command: [/home/aj/.nix-profile/bin/nix-build, "-E", "import <nixpkgs> { config = {}; overlays = []; }", "-A", "python3", "--out-link", "bazel-support/nix-out-link", "-I", "nixpkgs=/home/aj/.cache/bazel/_bazel_aj/5f825ad28f8e070f999ba37395e46ee5/external/nixpkgs/nixpkgs"] Return code: 1 Error output: error: anonymous function at /home/aj/.cache/bazel/_bazel_aj/5f825ad28f8e070f999ba37395e46ee5/external/nixpkgs/nixpkgs.nix:3:1 called with unexpected argument 'config', at (string):1:1 ``` * rules_haskell unnamed string.split(_, maxsplit = _) The keyword argument may no longer be named. * string.replace(_, _, maxsplit = _) may not be named * Move proto sources from deps to data Fixes ``` ERROR: /home/aj/tweag.io/da/da-bazel-1.1/daml-lf/archive/BUILD.bazel:150:1: in deps attribute of scala_test rule //daml-lf/archive:daml_lf_archive_reader_tests_test_suite_src_test_scala_com_digitalasset_daml_lf_archive_DecodeV1Spec.scala: '//daml-lf/archive:daml_lf_1.6_archive_proto_srcs' does not have mandatory providers: 'JavaInfo'. Since this rule was created by the macro 'da_scala_test_suite', the error might have been caused by the macro implementation ``` * Define sha256 for haskell_ghc__paths Bazel 1.1.0 fails on missing hashes. * Disable --incompatible_windows_native_test_wrapper * //compiler/daml-extension don't modify sources Modifying sources in-place can cause issues on Windows, where build actions are not sandboxed and changes on sources can affect other build steps. * bazel-genfiles --> bazel-bin The bazel-genfiles symlink has been removed since Bazel 1.0. See https://github.com/bazelbuild/bazel/issues/8651 * Mark dev_env_tool repository rule as configure See https://docs.bazel.build/versions/1.1.0/skylark/lib/globals.html#repository_rule * Move data deps into data attribute * Mark dev_env_tool as local = True * Manually fetch @makensis_dev_env |
||
---|---|---|
.. | ||
aws | ||
base64 | ||
bats | ||
bazel | ||
bazel-api-docs | ||
bazel-deps | ||
bazel-project-view | ||
bibtex | ||
bq | ||
buck-out | ||
cabal2nix | ||
cc | ||
chromedriver | ||
circo | ||
convert | ||
coursier | ||
cram | ||
curl | ||
da-ghci | ||
da-ghcid | ||
da-install-git-hooks | ||
da-test-haskell-update-expected | ||
da-update-python-srcs | ||
da-virtualenv | ||
dad-add-source-dep.sh | ||
dade | ||
dade-assist | ||
dade-closure-size | ||
dade-collect-garbage | ||
dade-copyright-headers | ||
dade-env | ||
dade-freeze | ||
dade-help | ||
dade-init | ||
dade-list | ||
dade-list-broken-symlinks | ||
dade-pipenv-lock | ||
dade-preload | ||
dade-prepare-for-update | ||
dade-release-tool | ||
dade-test-sh | ||
daml-sdk-head | ||
data-uri | ||
dependency-check | ||
docker-credential-gcr | ||
dot | ||
fdp | ||
flake8 | ||
fsc | ||
gawk | ||
gcloud | ||
ghci | ||
ghcid | ||
gpg | ||
grpcurl | ||
gsutil | ||
hlint | ||
hub-detect | ||
ibazel | ||
ipython | ||
jar | ||
java | ||
javac | ||
jfrog | ||
jinfo | ||
jmap | ||
jo | ||
jq | ||
jstack | ||
latexmk | ||
license-checker | ||
live-server | ||
lualatex | ||
m4 | ||
make | ||
makeindex | ||
mvn | ||
nix-prefetch-git | ||
nix-update-src-json | ||
node | ||
node2nix | ||
npm | ||
openssl | ||
osht | ||
pandoc | ||
patch | ||
patchelf | ||
pdflatex | ||
pex | ||
pip3 | ||
pip3.6 | ||
pipenv | ||
protoc | ||
pypi2nix | ||
python | ||
python3 | ||
python3.6 | ||
python3.6-da | ||
README.md | ||
runpipenv | ||
sass | ||
sbt | ||
scala | ||
scalac | ||
scaladoc | ||
scalafmt | ||
scalap | ||
semver | ||
sha1sum | ||
shellcheck | ||
sphinx-autobuild | ||
sphinx-build | ||
sphinx-quickstart | ||
terraform | ||
thrift | ||
tlc2 | ||
tred | ||
unflatten | ||
wget | ||
xmlstarlet | ||
xxd | ||
yapf | ||
yarn | ||
zinc | ||
zip |
dade-preload
This tool will force nix to build every derivation in the dev-env.
Wrapped tools
Once the dev-env is set up (either through direnv (recommended), or through
manually sourcing one of dev-env/profile_{z,ba}sh.sh
), the shell's PATH
will look through dev-env/bin
first for its executables. The executables in
there are mostly scripts that redirect the call to the corresponding nix-built
executable. However, having that script gives us an opportunity to wrap some
of those commands in special ways; this section is meant to document in what
ways the commands available in dev-env/bin
have been modified from their
vanilla variants.