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

Add cross-arch building option to batch #73

Merged
merged 3 commits into from
May 19, 2020

Conversation

palfrey
Copy link
Contributor

@palfrey palfrey commented May 18, 2020

No description provided.

@palfrey palfrey mentioned this pull request May 18, 2020
Copy link
Member

@stapelberg stapelberg left a comment

Choose a reason for hiding this comment

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

Looks good overall

if s.arch != "" {
archOpt = fmt.Sprintf("-cross=%s", s.arch)
}
build := exec.CommandContext(ctx, "distri", "build", archOpt)
Copy link
Member

Choose a reason for hiding this comment

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

You can write that like so to make it a little easier to follow:

build := exec.CommandContext(ctx, "distri", "build")
if s.arch != "" {
  build.Args = append(build.Args, "-cross="+s.arch)
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Huh, didn't know that. My go is a bit patchy in various places...

@stapelberg stapelberg merged commit 2ba565f into distr1:master May 19, 2020
@palfrey palfrey deleted the cross-build-batch branch May 19, 2020 17:44
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.

None yet

2 participants