Skip to content

Build fly native on darwin with cgo enabled #601

Closed

Description

@databus23

Currently fly is cross-compiled for darwin and windows (https://github.com/concourse/bin/blob/master/ci/build-cli-artifacts.yml).

At least on darwin this has two side effects:

In our corporate environment statically linked darwin binaries are a constant cause of trouble. We run an internal CA for all intranet sites which does not work because of the first effect.
The second is a problem for some major vpn clients (e.g. Big IP F5, Cisco) because the resolver reads the /etc/reslv.conf directly. Those VPN clients don't modify the resolv.conf when connecting to the corporate network but rather hook into the native darwin resolver to inject the corporate nameservers. Statically linked go binaries therefore can't resolve any corporate hostnames because they end up using the DNS servers from the local network where the VPN client is located.

I'm wondering if maybe the concourse build process could be changed to build native cgo-enabled fly binaries at least for Darwin as it removes some edge cases mostly seen in larger corporate environments.

Activity

  1. concourse-bot commented on Aug 23, 2016

    @concourse-bot

    Hi there!

    We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

    The current status is as follows:

    • #129925039 Produce natively-built binaries as part of GitHub release; embed in BOSH release and binaries
    • #128871667 Build fly native on darwin with cgo enabled

    This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

  2. concourse-bot commented on Sep 19, 2016

    @concourse-bot

    Hello again!

    All stories related to this issue have been accepted, so I'm going to automatically close this issue.

    At the time of writing, the following stories have been accepted:

    • #129925039 Produce natively-built binaries as part of GitHub release; embed in BOSH release and binaries
    • #128871667 Build fly native on darwin with cgo enabled

    If you feel there is still more to be done, or if you have any questions, leave a comment and we'll reopen if necessary!

  3. added a commit that references this issue on Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions