gaelcolas / Sampler

Module template with build pipeline and examples, including DSC elements.
MIT License
172 stars 42 forks source link

Only evaluate version using GitVersion if GitVersion.yml exist in repository #334

Open johlju opened 3 years ago

johlju commented 3 years ago

Problem description

It is possible to not add configuration files for GitVersion when creating a module using the templates. But if GitVersion is installed it will be used regardless.

Verbose logs

n/a

How to reproduce

Created a module using a template and skip adding GItVersion configuration.

Expected behavior

Not to use GitVersion if configuration is not available.

Current behavior

Always uses GitVersion if installed.

Suggested solution

Maybe we could make it so that the task only tries GitVersion if the file Gitversion.yml is present.

Operating system the target node is running

n/a

PowerShell version and build the target node is running

n/a

Module version used

v0.112.1-preview00xx