daml/dev-env/bin
Andreas Herrmann 33e47828e3
Bazel 1.1 (#3249)
* 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
2019-11-11 10:06:03 +01:00
..
aws target s3 bucket with docs refresh script (#1287) 2019-05-21 22:26:07 +00:00
base64 open-sourcing daml 2019-04-04 09:33:38 +01:00
bats open-sourcing daml 2019-04-04 09:33:38 +01:00
bazel open-sourcing daml 2019-04-04 09:33:38 +01:00
bazel-api-docs open-sourcing daml 2019-04-04 09:33:38 +01:00
bazel-deps open-sourcing daml 2019-04-04 09:33:38 +01:00
bazel-project-view open-sourcing daml 2019-04-04 09:33:38 +01:00
bibtex open-sourcing daml 2019-04-04 09:33:38 +01:00
bq open-sourcing daml 2019-04-04 09:33:38 +01:00
buck-out open-sourcing daml 2019-04-04 09:33:38 +01:00
cabal2nix open-sourcing daml 2019-04-04 09:33:38 +01:00
cc Dev env fixes (#232) 2019-04-04 16:46:06 -04:00
chromedriver open-sourcing daml 2019-04-04 09:33:38 +01:00
circo open-sourcing daml 2019-04-04 09:33:38 +01:00
convert open-sourcing daml 2019-04-04 09:33:38 +01:00
coursier open-sourcing daml 2019-04-04 09:33:38 +01:00
cram open-sourcing daml 2019-04-04 09:33:38 +01:00
curl Dev env fixes (#232) 2019-04-04 16:46:06 -04:00
da-ghci Add support for da_haskell_repl targets in da-ghci (#1847) 2019-06-24 16:39:41 +01:00
da-ghcid Load core-package dependencies in da-ghci (#1712) 2019-06-17 12:56:33 +00:00
da-install-git-hooks open-sourcing daml 2019-04-04 09:33:38 +01:00
da-test-haskell-update-expected open-sourcing daml 2019-04-04 09:33:38 +01:00
da-update-python-srcs open-sourcing daml 2019-04-04 09:33:38 +01:00
da-virtualenv open-sourcing daml 2019-04-04 09:33:38 +01:00
dad-add-source-dep.sh update copyright notices (#2499) 2019-08-13 17:23:03 +01:00
dade open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-assist open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-closure-size open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-collect-garbage dade-collect-garbage to delete ~/.bazel-cache as part of the cleanup (#1061) 2019-05-09 16:09:29 -04:00
dade-copyright-headers copyright: do not add extra blank line (#2502) 2019-08-13 12:52:07 +02:00
dade-env open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-freeze open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-help open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-init open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-list open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-list-broken-symlinks open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-pipenv-lock open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-preload open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-prepare-for-update open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-release-tool open-sourcing daml 2019-04-04 09:33:38 +01:00
dade-test-sh open-sourcing daml 2019-04-04 09:33:38 +01:00
daml-sdk-head Bazel 1.1 (#3249) 2019-11-11 10:06:03 +01:00
data-uri open-sourcing daml 2019-04-04 09:33:38 +01:00
dependency-check open-sourcing daml 2019-04-04 09:33:38 +01:00
docker-credential-gcr add docker-credential-gcr to dev-env (#1533) 2019-06-05 19:36:31 -04:00
dot open-sourcing daml 2019-04-04 09:33:38 +01:00
fdp open-sourcing daml 2019-04-04 09:33:38 +01:00
flake8 open-sourcing daml 2019-04-04 09:33:38 +01:00
fsc open-sourcing daml 2019-04-04 09:33:38 +01:00
gawk open-sourcing daml 2019-04-04 09:33:38 +01:00
gcloud open-sourcing daml 2019-04-04 09:33:38 +01:00
ghci open-sourcing daml 2019-04-04 09:33:38 +01:00
ghcid fix dev-env ghcid (#3218) 2019-10-18 12:27:41 +02:00
gpg Fixes #1204: Release bindings and codegens to Maven Central. (#1205) 2019-06-17 15:37:49 +02:00
grpcurl open-sourcing daml 2019-04-04 09:33:38 +01:00
gsutil open-sourcing daml 2019-04-04 09:33:38 +01:00
hlint open-sourcing daml 2019-04-04 09:33:38 +01:00
hub-detect open-sourcing daml 2019-04-04 09:33:38 +01:00
ibazel open-sourcing daml 2019-04-04 09:33:38 +01:00
ipython open-sourcing daml 2019-04-04 09:33:38 +01:00
jar open-sourcing daml 2019-04-04 09:33:38 +01:00
java open-sourcing daml 2019-04-04 09:33:38 +01:00
javac open-sourcing daml 2019-04-04 09:33:38 +01:00
jfrog open-sourcing daml 2019-04-04 09:33:38 +01:00
jinfo open-sourcing daml 2019-04-04 09:33:38 +01:00
jmap open-sourcing daml 2019-04-04 09:33:38 +01:00
jo open-sourcing daml 2019-04-04 09:33:38 +01:00
jq correct jq in dev-env (#463) 2019-04-12 16:44:15 -04:00
jstack open-sourcing daml 2019-04-04 09:33:38 +01:00
latexmk open-sourcing daml 2019-04-04 09:33:38 +01:00
license-checker open-sourcing daml 2019-04-04 09:33:38 +01:00
live-server open-sourcing daml 2019-04-04 09:33:38 +01:00
lualatex open-sourcing daml 2019-04-04 09:33:38 +01:00
m4 open-sourcing daml 2019-04-04 09:33:38 +01:00
make open-sourcing daml 2019-04-04 09:33:38 +01:00
makeindex open-sourcing daml 2019-04-04 09:33:38 +01:00
mvn open-sourcing daml 2019-04-04 09:33:38 +01:00
nix-prefetch-git open-sourcing daml 2019-04-04 09:33:38 +01:00
nix-update-src-json open-sourcing daml 2019-04-04 09:33:38 +01:00
node open-sourcing daml 2019-04-04 09:33:38 +01:00
node2nix open-sourcing daml 2019-04-04 09:33:38 +01:00
npm open-sourcing daml 2019-04-04 09:33:38 +01:00
openssl open-sourcing daml 2019-04-04 09:33:38 +01:00
osht open-sourcing daml 2019-04-04 09:33:38 +01:00
pandoc open-sourcing daml 2019-04-04 09:33:38 +01:00
patch open-sourcing daml 2019-04-04 09:33:38 +01:00
patchelf open-sourcing daml 2019-04-04 09:33:38 +01:00
pdflatex open-sourcing daml 2019-04-04 09:33:38 +01:00
pex open-sourcing daml 2019-04-04 09:33:38 +01:00
pip3 open-sourcing daml 2019-04-04 09:33:38 +01:00
pip3.6 open-sourcing daml 2019-04-04 09:33:38 +01:00
pipenv open-sourcing daml 2019-04-04 09:33:38 +01:00
protoc open-sourcing daml 2019-04-04 09:33:38 +01:00
pypi2nix open-sourcing daml 2019-04-04 09:33:38 +01:00
python open-sourcing daml 2019-04-04 09:33:38 +01:00
python3 open-sourcing daml 2019-04-04 09:33:38 +01:00
python3.6 open-sourcing daml 2019-04-04 09:33:38 +01:00
python3.6-da open-sourcing daml 2019-04-04 09:33:38 +01:00
README.md remove mentions of da-int servers (#2485) 2019-08-12 10:42:41 +01:00
runpipenv open-sourcing daml 2019-04-04 09:33:38 +01:00
sass open-sourcing daml 2019-04-04 09:33:38 +01:00
sbt add sbt to dev-env (#964) 2019-05-07 09:27:38 -04:00
scala open-sourcing daml 2019-04-04 09:33:38 +01:00
scalac open-sourcing daml 2019-04-04 09:33:38 +01:00
scaladoc open-sourcing daml 2019-04-04 09:33:38 +01:00
scalafmt open-sourcing daml 2019-04-04 09:33:38 +01:00
scalap open-sourcing daml 2019-04-04 09:33:38 +01:00
semver open-sourcing daml 2019-04-04 09:33:38 +01:00
sha1sum open-sourcing daml 2019-04-04 09:33:38 +01:00
shellcheck open-sourcing daml 2019-04-04 09:33:38 +01:00
sphinx-autobuild open-sourcing daml 2019-04-04 09:33:38 +01:00
sphinx-build open-sourcing daml 2019-04-04 09:33:38 +01:00
sphinx-quickstart open-sourcing daml 2019-04-04 09:33:38 +01:00
terraform open-sourcing daml 2019-04-04 09:33:38 +01:00
thrift open-sourcing daml 2019-04-04 09:33:38 +01:00
tlc2 open-sourcing daml 2019-04-04 09:33:38 +01:00
tred open-sourcing daml 2019-04-04 09:33:38 +01:00
unflatten open-sourcing daml 2019-04-04 09:33:38 +01:00
wget open-sourcing daml 2019-04-04 09:33:38 +01:00
xmlstarlet open-sourcing daml 2019-04-04 09:33:38 +01:00
xxd open-sourcing daml 2019-04-04 09:33:38 +01:00
yapf open-sourcing daml 2019-04-04 09:33:38 +01:00
yarn open-sourcing daml 2019-04-04 09:33:38 +01:00
zinc open-sourcing daml 2019-04-04 09:33:38 +01:00
zip open-sourcing daml 2019-04-04 09:33:38 +01:00

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.