Skip to content

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

@svengerlach

Description

@svengerlach

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions