Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-10402 metatools: move towards using dynamic artifacts for statically linked languages
  3. FL-10403

metatools: implement a golang dependencies packager using dynamic artifacts

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • normal impact.

      Instead of fetching every dependency of golang packages separately, we should move towards using dynamic artifacts for these purposes.

      A way we can achieve this is by using the following go command:

      GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw
      

      This command fetches all dependencies of a golang package, populating the golang module cache at the specified directory. That module cache is enough for golang to be able to resolve the dependencies offline.

            drobbins drobbins
            invakid404 invakid404
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: