Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-3953

Usage of "os/user" and cross-compilation

    Details

    • Sprint:
      CLI Team Sprint 26
    • Story Points:
      1

      Description

      The usage of the os/user package doesn't seem to work well with Go cross-compilation.

      I had strange CI errors on Windows when working on integration tests which took me time to root-cause. Basically getting the user home directory failed, as a workaround for now I've explicitly set DCOS_DIR in the windows integration tests CI jobs.

      For more context : https://github.com/mitchellh/go-homedir

      A simple fix could be to upgrade to Go 1.11 too (https://tip.golang.org/doc/go1.11#os/user):

      The os/user package can now be built in pure Go mode using the build tag "osusergo", independent of the use of the environment variable CGO_ENABLED=0. Previously the only way to use the package's pure Go implementation was to disable cgo support across the entire program.
      

        Attachments

          Activity

            People

            • Assignee:
              bilalamarni Bilal Amarni
              Reporter:
              bilalamarni Bilal Amarni
              Team:
              CLI Team
              Watchers:
              Bilal Amarni
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: