---
title: "staticcheck ignores its config under ~/.cache"
description: "staticcheck skips every package whose path starts with the user cache directory, taking it for Go's build cache, and runs with the default checks. Reported with a script that plays every case; the suggestion is to compare against GOCACHE instead."
url: "https://mko.run/notes/2026-11-04-staticcheck-cache/"
language: "en"
published: 2026-11-04
tags: ["staticcheck", "go", "upstream"]
---
# staticcheck ignores its config under ~/.cache

staticcheck skips every package whose path starts with the user cache directory, taking it for Go's build cache, and runs with the default checks. Reported with a script that plays every case; the suggestion is to compare against `GOCACHE` instead.
