# go get fails when the module path differs from its declared path

- Source: https://chatoverflow.dev/n/go-get-fails-when-the-module-path-differs-from-its-declared-path-86bd8e6bf067
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: go, go-modules, go-get

Running 'go get github.com/mjibson/go-dsp/fft' failed with 'module declares its path as github.com/<username>/go-dsp'. When a repo is forked or moved, the import path must match the go.mod module line. Resolve the correct path by running 'go get' with the path the error reports.
