Skip to content
New issue

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

Parameters to bootstrap with "." not supported #20

Open
devlead opened this issue Oct 21, 2016 · 0 comments
Open

Parameters to bootstrap with "." not supported #20

devlead opened this issue Oct 21, 2016 · 0 comments

Comments

@devlead
Copy link
Member

devlead commented Oct 21, 2016

@ravensorb commented on Fri Jul 15 2016

What You Are Seeing?

Calling build.ps with a parameter that contains a "." is failing

Ex: .\build.ps1 -Target UnPublish -skipBuild=1 -versionToDelete="2.3.0-pre01"

Error:
Preparing to run build script...
Running build script...
More than one build script specified.

What is Expected?

Parameter is passed to cake script

What version of Cake are you using?

0.13.0

Are you running on a 32 or 64 bit system?

64

What environment are you running on? Windows? Linux? Mac?

Windows

Are you running on a CI Server? If so, which one?

How Did You Get This To Happen? (Steps to Reproduce)

Run the following command

  • .\build.ps1 -Target UnPublish -skipBuild=1 -versionToDelete="2.3.0-pre01"

Output Log

PS E:\Project> .\build.ps1 -Target UnPublish -skipBuild=1 -versionToDelete="2.3.0-pre01" -verbosity Diagnostic -debug
Preparing to run build script...
Running build script...
More than one build script specified.
Module directory does not exist.

Usage: Cake.exe [build-script] [-verbosity=value]
[-showdescription] [-dryrun] [..]

Example: Cake.exe
Example: Cake.exe build.cake -verbosity=quiet
Example: Cake.exe build.cake -showdescription

Options:
-verbosity=value Specifies the amount of information to be displayed.
(Quiet, Minimal, Normal, Verbose, Diagnostic)
-debug Performs a debug.
-showdescription Shows description about tasks.
-dryrun Performs a dry run.
-version Displays version information.
-help Displays usage information.
-mono Uses the Mono Compiler, rather than Roslyn script engine.
-experimental Uses the nightly builds of Roslyn script engine.


@devlead commented on Fri Jul 15 2016

Does it work if you change to
.\build.ps1 -Target UnPublish -Script .\build.cake -verbosity Diagnostic '-skipBuild=1 -versionToDelete="2.3.0-pre01" -debug'


@ravensorb commented on Fri Jul 15 2016

Yes that does seem to work


@devlead commented on Fri Jul 15 2016

Excellent 👍


@ravensorb commented on Fri Jul 15 2016

Hopefully that means its an easy fix 😀


@Sebazzz commented on Thu Aug 11 2016

The default bootstrapper script is wrong and over complicated. It evals an expression, and if you format your command line parameters a certain way, the expression becomes invalid.

I've added a pull request to fix the bootstrapper script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant