Jira (PUP-5633) gem provider doesn't remove old gem version

0 views
Skip to first unread message

Daniel Parks (JIRA)

unread,
Dec 22, 2015, 2:08:06 PM12/22/15
to puppe...@googlegroups.com
Daniel Parks created an issue
 
Puppet / Bug PUP-5633
gem provider doesn't remove old gem version
Issue Type: Bug Bug
Affects Versions: PUP 4.2.3
Assignee: Unassigned
Created: 2015/12/22 11:07 AM
Priority: Normal Normal
Reporter: Daniel Parks

Run the following Puppet code one after another:

package { 'autosign':
  ensure => '0.0.10',
  provider => 'gem',
}

package { 'autosign':
  ensure => '0.1.1',
  provider => 'gem',
}

Result:

$ gem list | fgrep autosign
autosign (0.1.1, 0.0.10)

Expected result:

$ gem list | fgrep autosign
autosign (0.1.1)

This gets in the way of all kinds of stuff that expect only one version of a gem installed.

This also affects pe_gem.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc)
Atlassian logo

Daniel Parks (JIRA)

unread,
Dec 22, 2015, 5:09:02 PM12/22/15
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
May 16, 2017, 3:16:03 PM5/16/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
 
Change By: Henrik Lindberg
Component/s: Types and Providers
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
May 16, 2017, 3:16:03 PM5/16/17
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
May 16, 2017, 3:16:04 PM5/16/17
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
May 10, 2018, 8:11:02 PM5/10/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: gem package triaged type_and_provider
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (Jira)

unread,
Mar 5, 2020, 1:00:02 AM3/5/20
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-5633
 
Re: gem provider doesn't remove old gem version

The gem version isn't part of the "name" so when a new version is specified, puppet interprets that to mean install the 2nd version, not uninstall the old version and install the new version. To do that we'd need a parameter that indicates only the specified version(s) should be installed, and any version not listed should be uninstalled. It's similar to how the auth_membrership property controls members of a group. That said we're unlikely to fix this anytime soon. Please reopen if it's still a concern.

This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages