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

Versioning - Add ability to override generating versioning information #217

Closed
gjonespf opened this issue May 16, 2018 · 1 comment · Fixed by #542
Closed

Versioning - Add ability to override generating versioning information #217

gjonespf opened this issue May 16, 2018 · 1 comment · Fixed by #542
Assignees
Milestone

Comments

@gjonespf
Copy link

Thinking of being able to do something like this:

BuildParameters.Tasks.GenerateVersioning.Task.Actions.Clear();
BuildParameters.Tasks.GenerateVersioning
	.Does(() => {
		Information("Add manual versioning here");
	});

This would enable you to build custom versioning schemes, use other tools as dropin replacements for GitVersion, or customise the GitVersion options completely.

@gep13
Copy link
Member

gep13 commented Sep 19, 2019

Comment from @AdmiringWorm in duplicate issue...

Or maybe in a Setup instead, which can be conditionally disabled by the user if they want.
ie

#if !CUSTOM_VERSIONING
Setup<BuildVersion>((context) => {
  var version = new BuildVersion();

  // Do necessary logic for using versioning with gitversion

  return version;
});
#endif

@gep13 gep13 self-assigned this Jul 9, 2020
gep13 added a commit to gep13/Cake.Recipe that referenced this issue Jul 9, 2020
When you want to use something other than GitVersion to perform the
versioning of the repository, you can override the new Setup method,
and as long as you provide a BuildVersion instance, the remainder of
the code should work as expected.
gep13 added a commit to gep13/Cake.Recipe that referenced this issue Jul 9, 2020
When you want to use something other than GitVersion to perform the
versioning of the repository, you can override the new Setup method,
and as long as you provide a BuildVersion instance, the remainder of
the code should work as expected.
gep13 added a commit to gep13/Cake.Recipe that referenced this issue Jul 9, 2020
When you want to use something other than GitVersion to perform the
versioning of the repository, you can override the new Setup method,
and as long as you provide a BuildVersion instance, the remainder of
the code should work as expected.
gep13 added a commit to gep13/Cake.Recipe that referenced this issue Jul 9, 2020
When you want to use something other than GitVersion to perform the
versioning of the repository, you can override the new Setup method,
and as long as you provide a BuildVersion instance, the remainder of
the code should work as expected.
AdmiringWorm added a commit that referenced this issue Jul 9, 2020
(GH-217) Add ability to override versioning
@AdmiringWorm AdmiringWorm changed the title Versioning - Add overridable build parameter task to generate versioning information Versioning - Add ability to override generating versioning information Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants