Skip to content

Commit

Permalink
just: support structuredAttrs in setup hook
Browse files Browse the repository at this point in the history
Tested cosmic-applibrary with and without __structuredAttrs.
  • Loading branch information
wolfgangwalther committed Aug 24, 2024
1 parent f96e208 commit c3900d1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions pkgs/by-name/ju/just/setup-hook.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
justBuildPhase() {
runHook preBuild

local flagsArray=($justFlags "${justFlagsArray[@]}")
local flagsArray=()
concatTo flagsArray justFlags justFlagsArray

echoCmd 'build flags' "${flagsArray[@]}"
just "${flagsArray[@]}"
Expand All @@ -21,10 +22,8 @@ justCheckPhase() {
if [ -z "${checkTarget:-}" ]; then
echo "no test target found in just, doing nothing"
else
local flagsArray=(
$justFlags "${justFlagsArray[@]}"
$checkTarget
)
local flagsArray=()
concatTo flagsArray justFlags justFlagsArray checkTarget

echoCmd 'check flags' "${flagsArray[@]}"
just "${flagsArray[@]}"
Expand All @@ -36,8 +35,8 @@ justCheckPhase() {
justInstallPhase() {
runHook preInstall

# shellcheck disable=SC2086
local flagsArray=($justFlags "${justFlagsArray[@]}" ${installTargets:-install})
local flagsArray=()
concatTo flagsArray justFlags justFlagsArray installTargets=install

echoCmd 'install flags' "${flagsArray[@]}"
just "${flagsArray[@]}"
Expand Down

0 comments on commit c3900d1

Please sign in to comment.