Skip to content

[#17] Added the configuration parameter 'use-short-cache-path'. - #63

Open
renkin wants to merge 1 commit into
voxpupuli:masterfrom
renkin:master
Open

[#17] Added the configuration parameter 'use-short-cache-path'.#63
renkin wants to merge 1 commit into
voxpupuli:masterfrom
renkin:master

Conversation

@renkin

@renkin renkin commented Feb 5, 2018

Copy link
Copy Markdown

Additionally to the configuration parameter 'tmp', this parameter is helpful to avoid too long cache paths under Windows.

This is achieved by shortening the cache path part of the Puppet forge URI to the 7 first digits of its SHA1 checksum (like short Git commit hash approach).

Under Windows this shortening is especially important when you use an alternative Puppet forge with a quite longer URI.

Additionally to the configuration parameter 'tmp', this parameter is helpful to avoid too long cache paths under Windows.

This is achieved by shortening the cache path part of the Puppet forge URI to the 7 first digits of its SHA1 checksum (like short Git commit hash approach).

Under Windows this shortening is especially important when you use an alternative Puppet forge with a quite longer URI.
@uhanisch

uhanisch commented Feb 6, 2018

Copy link
Copy Markdown

Would love to see it in master branch

@ekohl

ekohl commented Feb 6, 2018

Copy link
Copy Markdown
Member

At first sight it makes sense but this could use some tests to verify we don't accidentally break it later. Also wondering if we should use sha256 instead since security tightened systems might disallow sha1.

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

Successfully merging this pull request may close these issues.

3 participants