-
Notifications
You must be signed in to change notification settings - Fork 46
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
feat: use debian arch in platforms #380
feat: use debian arch in platforms #380
Conversation
0b765a5
to
9617a1f
Compare
This commit puts Rockcraft in line with other craft tools: the architectures listed in the platforms are in Debian format, and we convert when necessary (such as when fetching images from a Docker registry). As a side-effect, we also drop the "build variant" notion from the platforms - currently this variant is only used when fetching/creating images, so keep the variant logic localized to rockcraft.oci.
9617a1f
to
23b64dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to see the craft_application doing some of this work :) Nice work.
Just a few notes.
This way both ``project`` and ``oci`` can make use of it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noice!! very clean.
I left a few non-blocking nitpicks.
Despite the approval, I'd still recommend double checking https://github.com/canonical/rockcraft/pull/380/files#r1364486923 just to be sure Umoci is working well for non-amd64 archs
@cjdcordeiro regarding the umoci arch: as we discussed, I updated the code to use GOARCH as that is most likely the expected format (based on umoci's code and the OCI spec) and next week I'll confirm that assumption with a manual test on a non-standard arch |
This commit puts Rockcraft in line with other craft tools: the architectures listed in the platforms are in Debian format, and we convert to GOARCH when necessary (such as when fetching images from a Docker registry or creating empty ones with umoci). As a side-effect, we also drop the "build variant" notion from the platforms - currently this variant is only used when fetching/creating images, so keep the variant logic localized to rockcraft.oci.
This commit puts Rockcraft in line with other craft tools: the architectures listed in the platforms are in Debian format, and we convert to GOARCH when necessary (such as when fetching images from a Docker registry or creating empty ones with umoci). As a side-effect, we also drop the "build variant" notion from the platforms - currently this variant is only used when fetching/creating images, so keep the variant logic localized to rockcraft.oci.
This commit puts Rockcraft in line with other craft tools: the
architectures listed in the platforms are in Debian format, and we
convert when necessary (such as when fetching images from a Docker
registry).
As a side-effect, we also drop the "build variant" notion from the
platforms - currently this variant is only used when fetching/creating
images, so keep the variant logic localized to rockcraft.oci.
Fixes #370, #358