We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NUKE 9.0.4 / .NET 8.0.11 / net8.0 / macOS 15.2
Execute the following target using any v9 version of Nuke:
Target Test => _ => _ .Executes(() => { Pwsh(s => s .SetFile("LookAtMe.ps1") .EnableNoProfile() .EnableNonInteractive()); });
Nuke generates the following command: /usr/local/bin/pwsh -File LookAtMe.ps1 -NoProfile -NonInteractive
/usr/local/bin/pwsh -File LookAtMe.ps1 -NoProfile -NonInteractive
Here -NoProfile and -NonInteractive are sent as arguments to the LookAtMe.ps1 script instead of the pwsh process.
-NoProfile
-NonInteractive
LookAtMe.ps1
pwsh
Using the same target with Nuke 8.1.4 generates this: /usr/local/bin/pwsh -NoProfile -NonInteractive -File LookAtMe.ps1
/usr/local/bin/pwsh -NoProfile -NonInteractive -File LookAtMe.ps1
Execute target from description and observe generated command.
NoProfile and NonInteractive should be applied before the -File argument.
NoProfile
NonInteractive
-File
NoProfile and NonInteractive are applied to the -File script as arguments.
This was working properly in Nuke 8.1.4
None
No
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Usage Information
NUKE 9.0.4 / .NET 8.0.11 / net8.0 / macOS 15.2
Description
Execute the following target using any v9 version of Nuke:
Nuke generates the following command:
/usr/local/bin/pwsh -File LookAtMe.ps1 -NoProfile -NonInteractive
Here
-NoProfile
and-NonInteractive
are sent as arguments to theLookAtMe.ps1
script instead of thepwsh
process.Using the same target with Nuke 8.1.4 generates this:
/usr/local/bin/pwsh -NoProfile -NonInteractive -File LookAtMe.ps1
Reproduction Steps
Execute target from description and observe generated command.
Expected Behavior
NoProfile
andNonInteractive
should be applied before the-File
argument.Actual Behavior
NoProfile
andNonInteractive
are applied to the-File
script as arguments.Regression?
This was working properly in Nuke 8.1.4
Known Workarounds
None
Could you help with a pull-request?
No
The text was updated successfully, but these errors were encountered: