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

archive::nexus ignore changes #204

Closed
myMarck opened this issue Aug 29, 2016 · 1 comment
Closed

archive::nexus ignore changes #204

myMarck opened this issue Aug 29, 2016 · 1 comment

Comments

@myMarck
Copy link

myMarck commented Aug 29, 2016

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 3.8.5
  • Ruby: 1.9.3p484
  • Distribution: Ubuntu 14.0.4
  • Module version: 1.1.1

How to reproduce (e.g Puppet code you use)

Run the example code in nexus::archive

archive::nexus { '/tmp/jtstand-ui-0.98.jar':
url => 'https://oss.sonatype.org',
gav => 'org.codehaus.jtstand:jtstand-ui:0.98',
repository => 'codehaus-releases',
packaging => 'jar',
extract => false,
}

ls -al /tmp/jtstand-ui-0.98.jar
-rw-r----- 1 root root 286643 Aug 29 12:02 /tmp/jtstand-ui-0.98.jar

change the file size to zero by doing

sudo rm /tmp/jtstand-ui-0.98.jar && sudo touch /tmp/jtstand-ui-0.98.jar

run puppet again

What are you seeing

ls -al /tmp/jtstand-ui-0.98.jar
-rw-r--r-- 1 root root 0 Aug 29 12:04 /tmp/jtstand-ui-0.98.jar

What behaviour did you expect instead

I would expect the archive module to replace the file.

Output log

NA

Any additional information you'd like to impart

It works in version 0.5.1
This problem also affects SNAPSHOT dependencies that are not replaced when new archives exsists in the repository

nanliu added a commit to nanliu/puppet-archive that referenced this issue Aug 31, 2016
The camptocamp archive digest_type default of :none overwrote puppet
archive checksum_type value, so even when we have a valid checksum such
as md5, the digest_type overwrote to :none. This results in files with
invalid checksums not being replaced. This PR addresses this bug.
nanliu added a commit to nanliu/puppet-archive that referenced this issue Aug 31, 2016
The camptocamp archive digest_type default of :none overwrote puppet
archive checksum_type value, so even when we have a valid checksum such
as md5, the digest_type overwrote to :none. This results in files with
invalid checksums not being replaced. This PR addresses this bug.
@nanliu
Copy link
Contributor

nanliu commented Aug 31, 2016

@myMarck, check and see if #211 resolves this issue

nanliu added a commit to nanliu/puppet-archive that referenced this issue Aug 31, 2016
The camptocamp archive digest_type default of :none overwrote puppet
archive checksum_type value, so even when we have a valid checksum such
as md5, the digest_type overwrote to :none. This results in files with
invalid checksums not being replaced. This PR addresses this bug.
alexjfisher added a commit that referenced this issue Aug 31, 2016
Fix GH-204 resolve camptocamp archive regression
randradas pushed a commit to randradas/puppet-archive that referenced this issue Oct 30, 2016
The camptocamp archive digest_type default of :none overwrote puppet
archive checksum_type value, so even when we have a valid checksum such
as md5, the digest_type overwrote to :none. This results in files with
invalid checksums not being replaced. This PR addresses this bug.
cegeka-jenkins pushed a commit to cegeka/puppet-archive that referenced this issue Mar 26, 2021
The camptocamp archive digest_type default of :none overwrote puppet
archive checksum_type value, so even when we have a valid checksum such
as md5, the digest_type overwrote to :none. This results in files with
invalid checksums not being replaced. This PR addresses this bug.
cegeka-jenkins pushed a commit to cegeka/puppet-archive that referenced this issue Mar 26, 2021
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

No branches or pull requests

2 participants