Skip to content

Drop support for nightly repos#57

Merged
bastelfreak merged 1 commit intovoxpupuli:masterfrom
bastelfreak:nightly
Mar 18, 2025
Merged

Drop support for nightly repos#57
bastelfreak merged 1 commit intovoxpupuli:masterfrom
bastelfreak:nightly

Conversation

@bastelfreak
Copy link
Member

This isn't working since months because Perforce doesn't publish them anymore, we never used it on our CI, and OpenVox doesn't have nightlies yet.

As a followup for #56 , this drop support for nightlies.

This isn't working since months because Perforce doesn't publish them
anymore, we never used it on our CI, and OpenVox doesn't have nightlies
yet.
@bastelfreak bastelfreak merged commit 912d0f8 into voxpupuli:master Mar 18, 2025
7 checks passed
@bastelfreak bastelfreak deleted the nightly branch March 18, 2025 15:02
nightly: {},
},
puppet: {
release: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove this layer and simplify it?

def self.install_puppet_release_repo_on(host, collection = 'puppet')
requirement_name = collection.gsub(/\d+/, '')
repos = REPOS[requirement_name.to_sym][nightly ? :nightly : :release]
repos = REPOS[requirement_name.to_sym][:release]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Main argument for removing the release layer is that it doesn't add anything and if requirement_name.to_sym isn't found, it ends up being nil[:release] which crashes.

I didn't spot this in the previous PR, but a safer alternative (if you want to keep the :release layer)

Suggested change
repos = REPOS[requirement_name.to_sym][:release]
repos = REPOS.dig(requirement_name.to_sym, :release)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants