cake-build/example

Calling build.sh with -Target argument causes double targets

Closed this issue · 3 comments

Due to -target=$TARGET $DRYRUN "${SCRIPT_ARGUMENTS[@]}", the script seems to pass both "Default" and the actual target argument of the call which then returns the following error:

Multiple arguments with the same name (Target).

This happened while running in a docker container from pomma89/dotnet-mono:dotnet-3-mono-5-sdk which runs some version of Debian I believe and the simple call

RUN ./build.sh -Target=Clean

.

Any workaround?
UPD: you probably need smth like this: ./build.sh --target UpdateBinding

I think I ended up mounting a custom build.sh file with the original target argument removed so it's simply $DRYRUN "${SCRIPT_ARGUMENTS[@]}"

#58 introduced the usage of the newest bootstrapper, so this issue should no longer occur.