docker / docker/docker-credential-helpers

Cross compiling in docker container for OSX fails

Open
#181 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
1.3k
Forks
195
Avg merge
1d 20h
Merged PRs (30d)
5

Description

Issue:
I am building a CLI using Go and using this package to store credentials for the users locally. I am trying to set up a build pipeline to automate building for Linux, Windows and MacOS. Linux and Windows builds run fine but the MacOS build gives the error:

# github.com/docker/docker-credential-helpers/osxkeychain gcc: error: unrecognized command line option '-mmacosx-version-min=10.11'

Setup:
Using this image: golang:1.12.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the macOS build in the golang:1.12.2 container and inspect the osxkeychain build path associated with the reported compiler error. Done means the CLI builds for macOS in the container without the -mmacosx-version-min=10.11 error, while the existing Linux and Windows builds continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.