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

Update GitHubCLI.munki.recipe #646

Merged
merged 2 commits into from
Jul 1, 2024
Merged

Conversation

kevinmcox
Copy link
Member

Adds the Munki supported_architectures array.

Adds the Munki `supported_architectures` array.
@homebysix
Copy link
Member

Correct me if I'm wrong, but doesn't this require AutoPkg users to specify both SUPPORTED_ARCH and ARCH variables, whereas before the change they only had to specify the ARCH variable along with adding a supported_architectures array into their override?

Given the need to keep these two variables in sync, I'm not sure this change makes things easier or clearer.

@kevinmcox
Copy link
Member Author

Correct, and this is how it is handled in several other recipes currently:
https://github.com/autopkg/gregneagle-recipes/blob/master/Podman/Podman.munki.recipe#L7-L8
https://github.com/autopkg/timsutton-recipes/blob/master/Go/Go.munki.recipe#L18-L22

The main difference is that currently this recipe assumes that users already know that they need to add a supported_architectures array into their override.

The change proposed here makes it explicit that one should be used and guides users on how to do it.

But I agree this isn't optimal so I submitted a PR to Munki in hopes of allowing a single variable to work for both the download URL and Munki array: munki/munki#1221

This commit pivots to using the `FindAndReplace` processor to convert the architecture variable instead of requiring it to be specified independently.
@kevinmcox
Copy link
Member Author

@homebysix I pushed a new commit, let me know if you like this approach better.

@homebysix
Copy link
Member

I like the new approach! Less work for recipe users and authors alike. Thank you! 👍

@homebysix homebysix merged commit d4ebb06 into autopkg:master Jul 1, 2024
1 check passed
@kevinmcox kevinmcox deleted the GitHubCLI-munki branch July 1, 2024 21:33
@kevinmcox
Copy link
Member Author

Now if we could get FindAndReplace added as a core processor it would make this approach more universally accessable without adding a dependency of this repo... 😉

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.

2 participants