Skip to content

Commit

Permalink
devel/garden: update to 1.3.0
Browse files Browse the repository at this point in the history
v1.3.0
Released 2023-02-19
Features:

garden eval and garden expressions in general will now resolve variables defined
within environment blocks. Environment blocks were previously not considered when
resolving variables. Environment blocks are now resolved and checked for variables
when ${variable} expressions do not find the variable in scopes with higher
precedence. The precedence order, from strongest to weakest, is the variables
block in a garden's scope, the variables block in a tree's scope, the
variables block in global configuration scope, the environments block in
a garden's scope, the environments block in a tree's scope, the
environments block in global configuration scope and, lastly, OS environment
variables. The first entry found is used when expanding variable expressions.
(#23)

Evaluation cycles (i.e. circular variable dependencies) are now prevented when
evaluating garden variables. The evaluation engine will now return empty strings
when a variable with a cyclical expression is evaluated.
(#24)

When zsh is used as the garden.shell, which happens automatically when zsh
is installed, garden will now use zsh -o shwordsplit in order to enable
word-splitting of $variable expressions by default. This makes zsh behave
just like other shells by default, which improves the portability of commands.
Configure garden.shell-wordsplit to false or use the
garden <cmd> -z | --no-wordsplit option to opt-out of this behavior.
(#25)

garden.shell can now be configured to use arbitrary commands for executing
command strings. Garden uses the configured garden.shell as-is and does
not augment its options (e.g. -e  or -o shwordsplit) when a custom command
is used. Custom commands are identified as commands that expand to 2 or more
command-line arguments. Thus, python3 is not considered a custom command
and garden will run python3 -c <string> to run commands. On the other
hand, specifying ruby -e is considered a custom command because it
expands to ["ruby", "-e"] under the hood. If you need to use a custom
command  that takes no additional command-line arguments then you can
use env as an extra argument to have it be considered as a custom shell.
For example, env custom-shell will cause garden to run
env custom-shell <string>, which is equivalent to custom-shell <string>.
Using just custom-shell would have resulted in garden running
custom-shell -c <string> instead, which may not be desired.
(#26)

The garden shell command can now be configured to use an interactive command shell
that is distinct from the command specified in the garden.shell configuration by
configuring the garden.interactive-shell value.
(#26)

garden shell can now be run without any arguments. The tree query now defaults to
. so that the tree in the current directory is used when nothing is specified.
(#26)

Custom commands now have access to a ${GARDEN_CMD_VERBOSE} and ${GARDEN_CMD_QUIET}
variables which can be used to forward the --verbose and --quiet arguments
down into child garden invocations. ${GARDEN_CMD_VERBOSE} uses the short -v
flag in the value to support the case where the verbose option is specified
multiples times to increase the verbosity level (e.g. -vv).
(#27)
  • Loading branch information
0323pin committed Feb 20, 2024
1 parent 03893e9 commit 8c44c1e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions devel/garden/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.8 2024/02/09 13:53:45 pin Exp $
# $NetBSD: Makefile,v 1.9 2024/02/20 21:27:06 pin Exp $

DISTNAME= garden-1.2.1
DISTNAME= garden-1.3.0
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITLAB:=garden-rs/garden/-/archive/v1.2.1/}
MASTER_SITES= ${MASTER_SITE_GITLAB:=garden-rs/garden/-/archive/v1.3.0/}

MAINTAINER= pin@NetBSD.org
HOMEPAGE= https://garden-rs.gitlab.io/
Expand All @@ -11,7 +11,7 @@ LICENSE= mit

.include "cargo-depends.mk"

WRKSRC= ${WRKDIR}/garden-v1.2.1-e075aa78851b5e3eb388b6d510aa65a260de3d6d
WRKSRC= ${WRKDIR}/garden-v1.3.0-f1b59297a6918d32612e9103e49c629917cd75a9

.include "../../lang/rust/cargo.mk"
.include "../../mk/bsd.pkg.mk"
2 changes: 1 addition & 1 deletion devel/garden/cargo-depends.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: cargo-depends.mk,v 1.8 2024/02/09 13:53:45 pin Exp $
# $NetBSD: cargo-depends.mk,v 1.9 2024/02/20 21:27:06 pin Exp $

CARGO_CRATE_DEPENDS+= ahash-0.8.7
CARGO_CRATE_DEPENDS+= allocator-api2-0.2.16
Expand Down
8 changes: 4 additions & 4 deletions devel/garden/distinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.8 2024/02/09 13:53:45 pin Exp $
$NetBSD: distinfo,v 1.9 2024/02/20 21:27:06 pin Exp $

BLAKE2s (ahash-0.8.7.crate) = 619b44001b4846e3aa43ef6b61b35c6b080b2933e5c84cca985303fca4267852
SHA512 (ahash-0.8.7.crate) = 2c9eaa22f7bda47a781994c769d4a2ef15ba0f511fdd4ec4680c13d4c1809f1ce01adecc3b3776793158062d28ad9e5f0b1d1c0a9429e43dd07cd99540eae7a6
Expand Down Expand Up @@ -129,9 +129,9 @@ Size (function_name-0.3.0.crate) = 4017 bytes
BLAKE2s (function_name-proc-macro-0.3.0.crate) = 332c12a25e3b58f43e02373637d2bfe78f820a9ddd27db2e1dd3359fa8a47441
SHA512 (function_name-proc-macro-0.3.0.crate) = 180fb4cdd32c32c81464aab5722fc5d12877d82600f09d74c8fef88cdd2f18c692ebc1c693d0324a3be36247a4a65db4c5b156c62b1c428fd055ce98e9da014f
Size (function_name-proc-macro-0.3.0.crate) = 2020 bytes
BLAKE2s (garden-1.2.1.tar.gz) = d4f5f66aeb2eb805f5d684fa0ffe4d485630dafd906dd209de5bfcf5c17cc5be
SHA512 (garden-1.2.1.tar.gz) = 1864ea42652a4573c3682f64f86bcee93b76a8a3fdc3bacedb0d9d7968f015512ddb9f7835fbe415aafd78429190de5669f7f117555d739f296e152c819191aa
Size (garden-1.2.1.tar.gz) = 118154 bytes
BLAKE2s (garden-1.3.0.tar.gz) = 024b56c092d953ab7be75c9f8c0ee094adbcf22dd066c86730679d7f02790d48
SHA512 (garden-1.3.0.tar.gz) = 5ac76d9a83146ab67a5adbfee0f018545613310249985c47e76bd105f661bd96a58ee377444f3be2c9601a03f3abefa63faa30a99ccff37a3cbb14328ec95584
Size (garden-1.3.0.tar.gz) = 126704 bytes
BLAKE2s (getrandom-0.2.12.crate) = 2e5d4819530f75a385114bf6454f1a4b90a807739b83be17fff889cc70da25c9
SHA512 (getrandom-0.2.12.crate) = dd97d7dae1a7ba653abdaf2db719e1a9c8eb721b08b4af0f1c45b1ed5079069d1b57e4f6d9d879e7fae3a890763f4b6aea9bc2d945392b98e811e7b348589bee
Size (getrandom-0.2.12.crate) = 36163 bytes
Expand Down

0 comments on commit 8c44c1e

Please sign in to comment.