Issue #14306 has been updated by Nan Liu.

Status changed from Needs More Information to Unreviewed
Assignee changed from Nan Liu to Kelsey Hightower

The reason you can't reproduce it is because we actually pushed apt version 
0.0.3 to forge. If you bump to version 0.0.4 in the Modulefile and use puppet 
module tool to build a version that's not on forge:

<pre>
$ puppet module build ./
Building /Users/nan/src/nodejs/modules/apt for release
pkg/puppetlabs-apt-0.0.4.tar.gz
$ puppet module uninstall puppetlabs-apt -f
Preparing to uninstall 'puppetlabs-apt' ...
Removed 'puppetlabs-apt' (v0.0.3) from /Users/nan/.puppet/modules
$ puppet module install puppetlabs-apt-0.0.4.tar.gz 
Preparing to install into /Users/nan/.puppet/modules ...
Downloading from http://forge.puppetlabs.com ...
Error: Could not install module 'puppetlabs-apt' (v0.0.4)
  No version of 'puppetlabs-apt' will satisfy dependencies
    You specified 'puppetlabs-apt' (v0.0.4)
    'puppetlabs-mongrodb' (v0.0.1) requires 'puppetlabs-apt' (>= 0.0.2)
    Use `puppet module install --force` to install this module anyway
</pre>

I suspect this is because we pull the metadata from forge no matter what. I 
tried to create the puppet module output for Razor for a blog post before I 
uploaded the razor module to forge and made it public:

<pre>
$ puppet module install puppetlabs-razor-0.1.0.tar.gz                           
                                                                                
                           1 ↵
Preparing to install into /Users/nan/.puppet/modules ...
Downloading from http://forge.puppetlabs.com ...
Error: Could not find release information for this module (puppetlabs/razor) 
(HTTP 404)
Error: Try 'puppet help module install' for usage
<pre>
----------------------------------------
Bug #14306: puppet module tool version comparison issues.
https://projects.puppetlabs.com/issues/14306#change-62125

Author: Nan Liu
Status: Unreviewed
Priority: Normal
Assignee: Kelsey Hightower
Category: modules
Target version: 
Affected Puppet version: 2.7.14
Keywords: 
Branch: 


Manually installation from tar.gz of module prerelease to forge shows it's 
having odd problems with version comparison. 0.0.3 is not greater than 0.0.2.

<pre>
$ puppet module install puppetlabs-apt-0.0.3.tar.gz  --verbose
Preparing to install into /Users/nan/.puppet/modules ...
Downloading from http://forge.puppetlabs.com ...
Error: Could not install module 'puppetlabs-apt' (v0.0.3)
  No version of 'puppetlabs-apt' will satisfy dependencies
    You specified 'puppetlabs-apt' (v0.0.3)
    'puppetlabs-mongrodb' (v0.0.1) requires 'puppetlabs-apt' (>= 0.0.2)
    Use `puppet module install --force` to install this module anyway
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to