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

Apt upgrade #301

Closed
wants to merge 3 commits into from
Closed

Apt upgrade #301

wants to merge 3 commits into from

Conversation

tedivm
Copy link

@tedivm tedivm commented May 14, 2015

PuppetLabs launched the 2.1.0 branch last month. This update allows this module to run with either the old and new version of the apt module, rather than forcing a specific version.

This is similar to #281, however it also updates the metadata files and provides backwards compatibility.

Robert Hafner added 2 commits May 14, 2015 14:32
PuppetLabs launched the 2.1.0 branch last month. Although it is a
"major" upgrade, none of the major changes are relevant to this module
(which only takes advantage of the apt::source object type).

This update allows this module to run with either the old and new
version of the apt module, rather than forcing a specific version.
Users of this module should select which version of the apt-module
they're using with the "apt_version" parameter.

This parameter is set to "1" for backwards compatability- users who
update this module should not see any issues. However, in the future
(presumably 2.0 if semver is being used) it may make sense to switch
this to 2.
@jenkinsadmin
Copy link

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@jhoblitt
Copy link
Member

@tedivm I'm generally not enthusiastic about trying to maintain support for multiple APIs; why not just upgrade to 2.x?

@tedivm
Copy link
Author

tedivm commented May 16, 2015

I'm mostly just trying to be accommodating- I can rip that code out, I'd just like to see support for the latest apt module.

@rtyler rtyler modified the milestone: 1.5.0 - Jennings May 18, 2015
@tedivm
Copy link
Author

tedivm commented May 18, 2015

Would you guys prefer I remove the support for multiple versions? @rtyler?





Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add all this whitespace?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea honestly. It's been removed.

@tizzo
Copy link

tizzo commented Jun 2, 2015

+1 for this. It's really annoying to have to pin the apt dependency to a past release. :) Thanks for the work guys, love the module.

key => '150FDE3F7787E7D11EF4E12A9B7D32F2D50582E6',
key_source => 'http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key',
include_src => false,
if $::jenkins::apt_version = 2 {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't have assignment here.

@cypherfox
Copy link

I am not quite sure, if this is due to the version of puppet that my jenkins is running (3.7.5), but it barfs on those assignments. I that legal with the new parser? Anyway, from a stylistic point: -1 from me.
(Although: I would asume it to be a typo)

@@ -20,7 +20,7 @@
],
"dependencies": [
{ "name": "puppetlabs/stdlib", "version_requirement": ">= 4.6.0 < 5.0.0" },
{ "name": "puppetlabs/apt", "version_requirement": ">= 0.0.3 < 2.0.0" },
{ "name": "puppetlabs/apt", "version_requirement": ">= 0.0.3 < 3.0.0" },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be either >= 1.0.0 < 3.0.0 or >= 2.0.0 < 3.0.0 if we can drop support for the apt 1.x API.

@madAndroid
Copy link
Contributor

We're experiencing this issue as well, where other modules have a dependency on puppetlabs-apt >= 2.0.0, and puppet-librarian fails to resolve the dependencies correctly. Is there anything specific that we can't use in the 2.x releases of the puppetlabs-apt module?

@madAndroid
Copy link
Contributor

Perhaps I should look at the PR properly, and the changes required :) However it's implemented, any change to puppetlabs-apt > 2.x would be greatly appreciated, hope this get's merged soon.

@tedivm
Copy link
Author

tedivm commented Jun 16, 2015

I'd suggest holding off at this point. The puppetlabs team is working on an apt v2.1 that actually adds more backwards compatibility and will reduce the amount of changes needed to support both >v2 and <v2.1. Once they finish that there's a good chance that the only change needed here will be on the dependency metadata itself.

@tedivm
Copy link
Author

tedivm commented Jun 17, 2015

I'm closing this ticket out in favor of #323.

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

Successfully merging this pull request may close these issues.

7 participants