-
Notifications
You must be signed in to change notification settings - Fork 775
image-index: define platform.variant for arm #650
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,7 +49,7 @@ func TestBackwardsCompatibilityImageIndex(t *testing.T) { | |
| fail bool | ||
| }{ | ||
| { | ||
| digest: "sha256:219f4b61132fe9d09b0ec5c15517be2ca712e4744b0e0cc3be71295b35b2a467", | ||
| digest: "sha256:d0ed7cfe33821cb6a15624486e650149e92fff3192ff2014bda0c4b0206c1aa2", | ||
| imageIndex: `{ | ||
| "schemaVersion": 2, | ||
| "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", | ||
|
|
@@ -91,7 +91,7 @@ func TestBackwardsCompatibilityImageIndex(t *testing.T) { | |
| "platform": { | ||
| "architecture": "arm", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I understand that "arm" is what gets expressed by GOARCH, which is why it is used here. But would it not be better to disambiguate the property by calling it "arm32"? I am not sure if this is the right place to add this, but I also think that for completeness we ought to have arch entries for "arm32", "arm64" and "arm64ilp32"?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is defined by runtime-spec, and I don't think we can change anymore.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's fine, and as a result of a historical decisions.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Please take this up with the Go team. |
||
| "os": "linux", | ||
| "variant": "armv7" | ||
| "variant": "v7" | ||
| } | ||
| }, | ||
| { | ||
|
|
@@ -101,7 +101,7 @@ func TestBackwardsCompatibilityImageIndex(t *testing.T) { | |
| "platform": { | ||
| "architecture": "arm64", | ||
| "os": "linux", | ||
| "variant": "armv8" | ||
| "variant": "v8" | ||
| } | ||
| } | ||
| ] | ||
|
|
||
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.
If we scope arch and variant with this table, and remove features, we can't identify platforms with ilp32 support, are there other issues tracing this?
And is
variantreally ARM specific property?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.
Please see https://golang.org/src/go/build/syslist.go for extra architecture values. I think ilp32 will be arm64p32. It is not here because it has low adoption at this point.
It is not. Where did you see this implied?
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.
Would it be possible to include a
v5variant? armv5/armel is still supported by go, and would be great to cover all options (and it's in use for some devices at us at resin.io)