Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

schema/types: translate between appc<->go arch tuples #668

Merged
merged 1 commit into from
Oct 25, 2016

Conversation

lucab
Copy link
Contributor

@lucab lucab commented Oct 21, 2016

This commit introduces two helper functions to translate between
appc and golang os/architecture labels.

Closes #665

This commit introduces two helper functions to translate between
appc and golang os/architecture labels.
Copy link
Contributor

@s-urbaniak s-urbaniak left a comment

Choose a reason for hiding this comment

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

Small comment, else LGTM, thanks!

func ToGoOSArch(appcOs string, appcArch string) (goOs string, goArch string, goArchFlavor string, e error) {
tabularGoToAppc := map[appcArchTuple]goArchTuple{
// {"linux", "aarch64_be"}: nil,
// {"linux", "armv7b"}: nil,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we simply remove those?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can, this is here just to make explicit that there are two arch without a Go equivalent (future-proofing myself the next time I go over the list). I'd better leave this here or translate to a human-readable comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As per OOB, keeping it there.

@lucab
Copy link
Contributor Author

lucab commented Oct 24, 2016

@jonboulle @squeed it looks like Travis got stuck on this, can anybody of you please re-trigger?

@squeed
Copy link
Contributor

squeed commented Oct 25, 2016

LGTM!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants