| commit | 700f1c97e6e63635b1010f1080340f593411f96c | [log] [tgz] |
|---|---|---|
| author | Lorenz Brun <lorenz@monogon.tech> | Wed Mar 06 16:15:55 2024 +0000 |
| committer | Lorenz Brun <lorenz@monogon.tech> | Thu Mar 07 13:49:52 2024 +0000 |
| tree | d798bb99adf0388376d4f78aaace43bcc835e442 | |
| parent | 7661202fe654da6ea6403bce89157c4d678abf22 [diff] |
third_party/nix: fix heredoc interpolation
This is a bit cursed as we have a bash script inside a Nix multi-line
string writing another bash script via a heredoc. The dirname expression
is currently being evaluated by bash while writing the inner script as
$( is interpolated in a bash heredoc. Quote it by both layers to prevent
this.
Previously in bin/bazel:
workspace_dir="."
With this fix:
workspace_dir="$(dirname "${workspace_dir}")"
Change-Id: I6e820faf222b1f364ea1b9e1a590e56ace4a638e
Reviewed-on: https://review.monogon.dev/c/monogon/+/2835
Tested-by: Jenkins CI
Reviewed-by: Tim Windelschmidt <tim@monogon.tech>
This is the main repository containing the source code for the Monogon Platform.
This is pre-release software - take a look, and check back later!
Our build environment is self-contained and requires only minimal host dependencies:
/dev/kvm (if you want to run tests).Our docs assume that Bazelisk is available as bazel on your PATH.
Refer to SETUP.md for detailed instructions.
The source code lives in //metropolis (Metropolis is the codename of Monogon OS).
See the //metropolis/README.md for a developer quick start guide, or see the Monogon OS Handbook for user documentation.