Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Support for multiple software versions #92

Closed
Thilas opened this issue Sep 30, 2017 · 8 comments
Closed

Support for multiple software versions #92

Thilas opened this issue Sep 30, 2017 · 8 comments

Comments

@Thilas
Copy link
Collaborator

Thilas commented Sep 30, 2017

I know this has already been discussed (#56) but I'm not really happy with the provided solution especially because of all the required duplication. I know we are potentially talking about supporting multiple versions that can need different package definitions but there are a lot of cases where a single package can easily handle multiple versions without any overheads.

I have 2 use cases in mind:

  1. a maintained branch and a prerelease branch releasing new versions simultaneously (e.g. https://github.com/atom/atom, package source)
  2. multiple maintained branches (e.g. http://strawberryperl.com/releases.html, package source)

In both cases, I have packages that can handle new versions without having differences in their definitions. And the only thing preventing me from publishing new versions for each branch is the is_updated function in Update-Package.ps1. Because it makes sure the new version is actually newer than the current one (from the nuspec file), it refuses to take it into account.

Then why not adding an optional switch to Update-Package in order to skip this logic and replace it by a simple "is new version different from the nuspec version"? Of course, I can provide a PR if you want.

@majkinetor
Copy link
Owner

The relevant discussion is #74.

What you want you can do now by forcing the package update within au_Update (example)

@Thilas
Copy link
Collaborator Author

Thilas commented Oct 1, 2017

Thanks for the answer! Regarding the workaround, I implemented a variant of it and it solved indeed my cases.

What about #74, it sounds like a good idea. Any progress? Do you need some help with it?

@Thilas Thilas closed this as completed Oct 1, 2017
@majkinetor
Copy link
Owner

Any progress? Do you need some help with it?

To be honest, I have almost 0 motivation for this. I don't keep any multi-stream packages, and few people are. This would mostly benefit coreteampackages-repo which is the largest AU user and already has several streamed packages. Furthermore, my real life job will take almost all my free time until the end of the year. So any help would be appreciated.

@majkinetor
Copy link
Owner

There is also idea here: chocolatey-community/chocolatey-packages#812

@Thilas
Copy link
Collaborator Author

Thilas commented Oct 2, 2017

I don't like much this last idea. Too "manual" to me 😄

Anyway I understand your situation. I'll think about it, especially to the stream approach discussed in #74.

@majkinetor
Copy link
Owner

majkinetor commented Oct 2, 2017 via email

@Thilas
Copy link
Collaborator Author

Thilas commented Oct 2, 2017

Sure, I see your point.

@majkinetor
Copy link
Owner

Both solutions could co-exist

@Thilas Thilas mentioned this issue Oct 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants