Commit Graph

6 Commits

Author SHA1 Message Date
Stefano Baghino
d999a21ac3
Replace cd .. && pwd with readlink -f (#17152)
The output of `cd` might be altered by `CDPATH` set on a
system, leading to `dade` being broken because it cannot
read the current path. Instead, using `readlink -f` seem
to get the job done without side effects.
2023-07-19 12:54:33 +00:00
Gary Verhaegen
0e9cb10f7d
optionally get canton EE (#17039) 2023-06-27 11:00:24 +02:00
Stefano Baghino
06e5c65dbc
Adjustments to usage of pre-commit (#15889)
- sets the default value for the hook type to `pre-push`
- allows to configure the hook type using `DADE_PRE_COMMIT_HOOK_TYPE`
- uninstalls all hooks with `direnv` before installation (no manual clean-up needed)
- documents the usage of `pre-commit` in `README.md`
- makes sure `pre-commit` is quiet when run with `direnv`
2023-01-09 11:45:32 +01:00
Claudio Bley
823c3eb34a
Use POSIX compliant check for DADE_NO_PRE_COMMIT (#15827)
It did not work when using an old Bash version:
```
./.envrc: line 8: [: -v: unary operator expected
```
2022-12-07 22:10:18 +01:00
Claudio Bley
ca1453ee8c
Add pre-commit config and install hook in dev-env (#15637)
* Add `pre-commit` tool to dev-env

* Add pre-commit configuration

Fixes #15522

* Install pre-commit hooks inside the nix shell

* Limit buildifier hook to files to be comitted

The `:buildifier-fix` tool always runs on all Bazel files (by calling `find`),
which is not useful when using pre-commit.

* Install pre-commit hook only when `DADE_NO_PRE_COMMIT` is unset

Since direnv does not execute the shellHook, install in `.envrc` too.
2022-12-07 13:09:50 +00:00
Digital Asset GmbH
05e691f558 open-sourcing daml 2019-04-04 09:33:38 +01:00