-
Notifications
You must be signed in to change notification settings - Fork 525
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
Is it possible to create packages of differing versions with paket pack? #1265
Comments
Mhm that's... Interesting ;-)
|
One idea would be to have the Packet.Pack lambda execute once for every parsed Paket.Pack (fun p ->
{ p with
Version = if p.Id = "Experimental.Lib" then "0.0.1-alpha" else release.NugetVersion }) Obviously this could create problems with backwards compatibility.. |
This sounds good from a fake standpoint. But how would this translate into
|
Good point. I guess it would only be possible if the pack command could target/parse individual templates or if paket were used as a library by fake. Not sure what is best here. |
Templates of type project are always processed together. Maybe we can
|
Perhaps it could be possible to pass separate version id's per project id. This would effectively add a separate command line option
which would override the default version number in case the |
Yes that would work too.
|
I think this would work, but currently template file type "project" If we fix this then it should work. But then we don't need the exclude
|
Yes, this is a fundamental flaw in my approach. I deleted my post for that reason. |
Yeah I guess this is the only fix we need. We need to be able to build
|
In general, every approach I have come up with ends up being incorrect under certain scenaria precisely because of interprocess dependencies. I really don't know how this could be fixed without breaking backwards compatibility. |
Not sure if there is a backward compatibility case we can break here. Building type project template files independently was not supported. I'll look into it |
Ok, in the meantime, would you consider merging the |
Yes. We can do this.
|
I own a repo which contains multiple projects that depend on each other, each having its own
paket.template
file. The version of each nuget release is passed through FAKE using the parsed release notes file, and the package inter-dependencies are correctly registered using theCURRENTVERSION
macro.Consider now the following situation: I just added a new project to the repo which is mostly experimental. I would like to release it on nuget together with its siblings, but I would like to enforce a prerelease suffix on that package specifically. This seems to be impossible at the moment: if I attempt to hard-wire a version number on the specific
paket.template
it will get overriden by FAKE. At the same time, it seems that thePaketPackParams
record in FAKE is global, as opposed to a per-template spec (and curiously enough, thePaketPackParams.TemplateFile
property evaluates to null).Any suggestions?
The text was updated successfully, but these errors were encountered: