Back to Golangci Lint

cache

internal/go/cache/readme.md

2.11.42.4 KB
Original Source

cache

Extracted from go/src/cmd/go/internal/cache/.

The main modifications are:

  • The errors management
    • Some methods return error.
    • Some errors are returned instead of being ignored.
  • The name of the env vars:
    • GOCACHE -> GOLANGCI_LINT_CACHE
    • GOCACHEPROG -> GOLANGCI_LINT_CACHEPROG

History

Previous History

Based on the initial PR/commit the based in a mix between go1.12 and go1.13:

  • cache.go (go1.13)
  • cache_test.go (go1.12?)
  • default.go (go1.12?)
  • hash.go (go1.13 and go1.12 are identical)
  • hash_test.go -> (go1.12?)

Adapted for golangci-lint: