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

The system cannot find the batch label specified - parse_value #4

Open
Jandini opened this issue Sep 26, 2020 · 2 comments
Open

The system cannot find the batch label specified - parse_value #4

Jandini opened this issue Sep 26, 2020 · 2 comments

Comments

@Jandini
Copy link
Owner

Jandini commented Sep 26, 2020

The error is manifested during dots installation when prerequisites are available:

C:\Users\MJanda>powershell.exe -NoP -NonI -ExecutionPolicy Bypass -Command "$branch='develop';$repo='Janda.Dot.CLI';$ProgressPreference = 'SilentlyContinue';[System.Net.ServicePointManager]::Expect100Continue=$true;[System.Net.ServicePointManager]::SecurityProtocol=[System.Net.SecurityProtocolType]::Tls12;Invoke-WebRequest -Uri \"https://github.com/Jandini/$repo/archive/$branch.zip\" -OutFile \"$branch.zip\";Expand-Archive -LiteralPath \"$branch.zip\" -DestinationPath $branch -Force;cd \"$branch\$repo-$branch\";.install.cmd"
Checking prerequisites...
Adding nuget.local source "C:\Users\MJanda\.nuget\local"
Package source with Name: nuget.local added successfully.
Building dots package...
The system cannot find the batch label specified - parse_value
Cannot find the .git directory
Adding C:\Users\MJanda\.dots to PATH environment
Packing Janda.Dot.CLI.0.0.0.nupkg...
Attempting to build package from '.nuspec'.
Successfully created package 'bin\Janda.Dot.CLI.0.0.0.nupkg'.
Checking Janda.Dot.CLI.0.0.0.nupkg in bin...
Installing templates...
Templates 0.0.0 installed successfully.
Copying dots to C:\Users\MJanda\.dots\
Adding .dotversion file...
Build complete.
Installation complete.
@Jandini
Copy link
Owner Author

Jandini commented Sep 26, 2020

This is version related issue. The environment variable does not exist or is not set.
Similar error is presented when running .version command:

C:\Users\MJanda>.version
The system cannot find the batch label specified - parse_value
Cannot find the .git directory
C:\ProgramData\chocolatey\bin\gitversion.exe
0.0.0

@Jandini
Copy link
Owner Author

Jandini commented Sep 27, 2020

This happen when dot's are installed directly from zip not from git repository.

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