Hello I'm the process of adding pants to my golang...
# general
a
Hello I'm the process of adding pants to my golang mono repo and I'm running into a challenge with caching / minimizing mod file downloads. I understand pants manages the tool chain itself, however I can't seem to cache the results since almost every CI run takes 15+ mins to download dependencies.
ci.yaml
Copy code
- uses: actions/checkout@v4
        with:
          fetch-depth: 0      

      - name: Set up Pants Caching
        uses: pantsbuild/actions/init-pants@main
        with:
          gha-cache-key: v0
          named-caches-hash: ""
          cache-lmdb-store: 'true'
      
      - uses: actions/setup-go@v5
        with:
          go-version-file: './go.mod'
          cache-dependency-path: |
             ./go.sum      
          
      - name: Pants Lint
        run: pants lint --changed-since=origin/${{ github.base_ref }}
pants.ci.toml
Copy code
[GLOBAL]
pants_version = "2.28.0"

backend_packages = [
    "pants.backend.experimental.go",
    "pants.backend.experimental.go.lint.vet",
    "pants.backend.docker.lint.hadolint",
    "pants.backend.experimental.tools.trufflehog"
]

[golang]
minimum_expected_version = "1.21"
extra_tools = ['git']

[go-test]

[go-vet]

[gofmt]

[golangci-lint]

[trufflehog]
args = [
    "--json",
    "--concurrency=20",
]
h
This is https://github.com/pantsbuild/pants/issues/22442 presumably? The go backend really needs some work