drrb / puppet-library

A private Puppet Forge
GNU General Public License v3.0
87 stars 20 forks source link

Git: .tar.gz only contains metadata.json if downloaded before #11

Closed svengerlach closed 10 years ago

svengerlach commented 10 years ago

I've tried to run the gem versions 0.16.0, 0.15.0 and a checkout of master.

I configured puppet-library the following way:

require 'rubygems'
require 'puppet_library'

server = PuppetLibrary::Server.configure do
    forge :git_repository do
        source "https://github.com/jfryman/puppet-nginx.git"
        include_tags /[0-9.]+/
    end
end

run server

The first time the module is downloaded (/modules/jfryman-nginx-0.0.9.tar.gz), everything is working fine. Any subsequent downloaded .tar.gz file only contains the file metadata.json.

Some output from the log file:

D, [2014-07-16T10:05:40.387507 #3464] DEBUG -- PuppetLibrary::Util::Git: git --git-dir=/tmp/git-repo-cache20140716-3464-qgq4ff-0/.git --work-tree=/tmp/git20140716-3464-chpsnn-0 checkout v0.0.9
192.168.1.25 - - [16/Jul/2014 10:05:40] "GET /modules/jfryman-nginx-0.0.9.tar.gz HTTP/1.1" 200 33069 2.3113
D, [2014-07-16T10:05:47.987534 #3464] DEBUG -- PuppetLibrary::Util::Git: git --git-dir=/tmp/git-repo-cache20140716-3464-qgq4ff-0/.git --work-tree=/tmp/git20140716-3464-1va93a3-0 checkout v0.0.9
192.168.1.25 - - [16/Jul/2014 10:05:48] "GET /modules/jfryman-nginx-0.0.9.tar.gz HTTP/1.1" 200 366 0.0808
drrb commented 10 years ago

Thanks for the report. I've reproduced this.

drrb commented 10 years ago

Fixed in v0.17.0.

svengerlach commented 10 years ago

Awesome - thank you!