Skip to content

github.com/AfterShip/email-verifier is not in your go.mod file #3839

@khanakia

Description

@khanakia

What version of Go, VS Code & VS Code Go extension are you using?

Version Information
  • Run go version to get version of Go from the VS Code integrated terminal.
    • go1.24.2 darwin/arm64
  • Run gopls -v version to get version of Gopls from the VS Code integrated terminal.
Build info
----------
golang.org/x/tools/gopls v0.20.0
    golang.org/x/tools/gopls@v0.20.0 h1:fxOYZXKl6IsOTKIh6IgjDbIDHlr5btOtOUkrGOgFDB4=
    github.com/BurntSushi/toml@v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg=
    github.com/fatih/camelcase@v1.0.0 h1:hxNvNX/xYBp0ovncs8WyWZrOrpBNub/JfaMvbURyft8=
    github.com/fatih/gomodifytags@v1.17.1-0.20250423142747-f3939df9aa3c h1:dDSgAjoOMp8da3egfz0t2S+t8RGOpEmEXZubcGuc0Bg=
    github.com/fatih/structtag@v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4=
    github.com/fsnotify/fsnotify@v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
    github.com/google/go-cmp@v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
    golang.org/x/exp/typeparams@v0.0.0-20250620022241-b7579e27df2b h1:KdrhdYPDUvJTvrDK9gdjfFd6JTk8vA1WJoldYSi0kHo=
    golang.org/x/mod@v0.26.0 h1:EGMPT//Ezu+ylkCijjPc+f4Aih7sZvaAr+O3EHBxvZg=
    golang.org/x/sync@v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
    golang.org/x/sys@v0.34.0 h1:H5Y5sJ2L2JRdyv7ROF1he/lPdvFsd0mJHFw2ThKHxLA=
    golang.org/x/telemetry@v0.0.0-20250710130107-8d8967aff50b h1:DU+gwOBXU+6bO0sEyO7o/NeMlxZxCZEvI7v+J4a1zRQ=
    golang.org/x/text@v0.27.0 h1:4fGWRpyh641NLlecmyl4LOe6yDdfaYNrGb2zdfo4JV4=
    golang.org/x/tools@v0.35.1-0.20250728180453-01a3475a31bc h1:ZRKyKRJl/YEWl9ScZwd6Ua6xSt7DE6tHp1I3ucMroGM=
    golang.org/x/vuln@v1.1.4 h1:Ju8QsuyhX3Hk8ma3CesTbO8vfJD9EvUBgHvkxHBzj0I=
    honnef.co/go/tools@v0.7.0-0.dev.0.20250523013057-bbc2f4dd71ea h1:fj8r9irJSpolAGUdZBxJIRY3lLc4jH2Dt4lwnWyWwpw=
    mvdan.cc/gofumpt@v0.8.0 h1:nZUCeC2ViFaerTcYKstMmfysj6uhQrA2vJe+2vwGU6k=
    mvdan.cc/xurls/v2@v2.6.0 h1:3NTZpeTxYVWNSokW3MKeyVkz/j7uYXYiMtXRUfmjbgI=
go: go1.24.2
  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders.
    • 1.103.0
      e3550cfac4b63ca4eafca7b601f0d2885817fd1f
      arm64
  • Check your installed extensions to get the version of the VS Code Go extension
    • <0.48.0
  • Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) > Go: Locate Configured Go Tools command.
# Tools Configuration


## Environment

GOBIN: undefined
toolsGopath: 
gopath: /Volumes/D/khanakia/go
GOROOT: /opt/homebrew/Cellar/go/1.24.2/libexec
PATH: /Volumes/D/khanakia/Library/Application Support/Herd/bin/:/Volumes/D/khanakia/.posthog:/Volumes/D/khanakia/.bun/bin:/Volumes/D/khanakia/.yarn/bin:/Volumes/D/khanakia/.config/yarn/global/node_modules/.bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/php@8.2/sbin:/opt/homebrew/opt/php@8.2/bin:/Volumes/D/khanakia/.deno/bin:/Volumes/D/khanakia/Library/pnpm:/Volumes/D/www/flutter/flutter/bin:/Volumes/D/khanakia/Library/Android/sdk/platform-tools:/Volumes/D/khanakia/Library/Android/sdk/platform-tools/bin:/Volumes/D/khanakia/Library/Android/sdk/tools/bin:/Volumes/D/khanakia/Library/Android/sdk/tools:/Volumes/D/khanakia/.composer/vendor/bin:/Library/Frameworks/Python.framework/Versions/3.13/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Volumes/D/khanakia/.codon/bin:/Volumes/D/khanakia/.cargo/bin:/Volumes/D/khanakia/.wasmedge/bin:/Volumes/D/khanakia/go/bin:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/usr/local/go/bin:/Applications/Postgres.app/Contents/Versions/17/bin:/Volumes/D/khanakia/.pub-cache/bin:/Volumes/D/khanakia/.local/bin:/Volumes/D/i2/bin/nvim-macos/bin:/Volumes/D/khanakia/.cache/lm-studio/bin

## Tools

	go:	/opt/homebrew/bin/go: go version go1.24.2 darwin/arm64

	gopls:	/Volumes/D/khanakia/go/bin/gopls	(version: v0.20.0 built with go: go1.24.2)
	gotests:	/Volumes/D/khanakia/go/bin/gotests	(version: v1.6.0 built with go: go1.24.2)
	impl:	/Volumes/D/khanakia/go/bin/impl	(version: v1.4.0 built with go: go1.24.2)
	goplay:	/Volumes/D/khanakia/go/bin/goplay	(version: v1.0.0 built with go: go1.24.2)
	dlv:	/Volumes/D/khanakia/go/bin/dlv	(version: v1.24.2 built with go: go1.24.2)
	staticcheck:	/Volumes/D/khanakia/go/bin/staticcheck	(version: v0.6.1 built with go: go1.24.2)

## Go env

Workspace Folder (saasfly_api): /Volumes/D/www/projects/khanakia/saasfly/saasfly_api

	AR='ar'
	CC='cc'
	CGO_CFLAGS='-O2 -g'
	CGO_CPPFLAGS=''
	CGO_CXXFLAGS='-O2 -g'
	CGO_ENABLED='1'
	CGO_FFLAGS='-O2 -g'
	CGO_LDFLAGS='-O2 -g'
	CXX='c++'
	GCCGO='gccgo'
	GO111MODULE='on'
	GOARCH='arm64'
	GOARM64='v8.0'
	GOAUTH='netrc'
	GOBIN=''
	GOCACHE='/Volumes/D/khanakia/Library/Caches/go-build'
	GOCACHEPROG=''
	GODEBUG=''
	GOENV='/Volumes/D/khanakia/Library/Application Support/go/env'
	GOEXE=''
	GOEXPERIMENT=''
	GOFIPS140='off'
	GOFLAGS=''
	GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/sk/k6vkn27d2xbcxcj1ll6dvwjw0000gn/T/go-build926312512=/tmp/go-build -gno-record-gcc-switches -fno-common'
	GOHOSTARCH='arm64'
	GOHOSTOS='darwin'
	GOINSECURE=''
	GOMOD='/dev/null'
	GOMODCACHE='/Volumes/D/khanakia/go/pkg/mod'
	GONOPROXY='github.com/theuxm'
	GONOSUMDB='github.com/theuxm'
	GOOS='darwin'
	GOPATH='/Volumes/D/khanakia/go'
	GOPRIVATE='github.com/theuxm'
	GOPROXY='https://proxy.golang.org,direct'
	GOROOT='/opt/homebrew/Cellar/go/1.24.2/libexec'
	GOSUMDB='sum.golang.org'
	GOTELEMETRY='local'
	GOTELEMETRYDIR='/Volumes/D/khanakia/Library/Application Support/go/telemetry'
	GOTMPDIR=''
	GOTOOLCHAIN='auto'
	GOTOOLDIR='/opt/homebrew/Cellar/go/1.24.2/libexec/pkg/tool/darwin_arm64'
	GOVCS=''
	GOVERSION='go1.24.2'
	GOWORK='/Volumes/D/www/projects/khanakia/saasfly/saasfly_api/go.work'
	PKG_CONFIG='pkg-config'
	

Share the Go related settings you have added/edited

Run Preferences: Open Settings (JSON) command to open your settings.json file.
Share all the settings with the go. or ["go"] or gopls prefixes.

 "go.toolsEnvVars": {
    "GO111MODULE": "on"
  },

Describe the bug

I am getting this error github.com/AfterShip/email-verifier is not in your go.mod file and when I try to run these commands

go clean -modcache
go clean -cache

then issue seems to be fixed for a while and then it comes again and I tried everything

  • I am using go workspace
  • I ran into the module directory cd saas && go mo tidy and then cd .. && go work vendor but still same issue

Steps to reproduce the behavior:

There is no easy way to replicate but it's related to the same past issue here #3675

Screenshots or recordings

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions