Skip to content

github.com/go-jose/go-jose/v4 is not in your go.mod file (go mod tidy) #3675

@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.
    • go version go1.23.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.17.1
    golang.org/x/tools/[email protected] h1:Mt/DSfnnSe3dyf6MH/dZZ0iww+viHNhAFc4rEYDiOAw=
    github.com/BurntSushi/[email protected] h1:pxW6RcqyfI9/kWtOwnv/G+AzdKuy2ZrqINhenH4HyNs=
    github.com/google/[email protected] h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
    golang.org/x/exp/[email protected] h1:1P7xPZEwZMoBoz0Yze5Nx2/4pxj6nw9ZqHWXqP0iRgQ=
    golang.org/x/[email protected] h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4=
    golang.org/x/[email protected] h1:fEo0HyrW1GIgZdpbhCRO0PkJajUS5H9IFUztCgEo2jQ=
    golang.org/x/[email protected] h1:TCDqnvbBsFapViksHcHySl/sW4+rTGNIAoJJesHRuMM=
    golang.org/x/[email protected] h1:gK/Kv2otX8gz+wn7Rmb3vT96ZwuoxnQlY+HlJVj7Qug=
    golang.org/x/[email protected] h1:kgwdasJRsdDWYgWcEgMF424DiXwwXHSb3V8xVTi//i8=
    golang.org/x/[email protected] h1:SP0mPeg2PmGCu03V+61EcQiOjmpri2XijexKdzv8Z1I=
    honnef.co/go/[email protected] h1:4bH5o3b5ZULQ4UrBmP+63W9r7qIkqJClEA9ko5YKx+I=
    mvdan.cc/[email protected] h1:bg91ttqXmi9y2xawvkuMXyvAA/1ZGJqYAEGjXuP0JXU=
    mvdan.cc/xurls/[email protected] h1:lyBNOm8Wo71UknhUs4QTFUNNMyxy2JEIaKKo0RWOh+8=
go: go1.23.2
  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders.
1.96.4
cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba
arm64
  • Check your installed extensions to get the version of the VS Code Go extension
    • 0.44.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: /usr/local/go
PATH: /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/[email protected]/bin:/opt/homebrew/opt/[email protected]/sbin:/opt/homebrew/opt/[email protected]/bin:/Volumes/D/khanakia/.deno/bin:/Volumes/D/khanakia/Library/pnpm:/Volumes/D/khanakia/.nvm/versions/node/v22.12.0/bin:/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.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/.cargo/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:	/usr/local/go/bin/go: go version go1.23.2 darwin/arm64

	gopls:	/Volumes/D/khanakia/go/bin/gopls	(version: v0.17.1 built with go: go1.23.2)
	gotests:	/Volumes/D/khanakia/go/bin/gotests	(version: v1.6.0 built with go: go1.23.1)
	gomodifytags:	/Volumes/D/khanakia/go/bin/gomodifytags	(version: v1.16.0 built with go: go1.23.1)
	impl:	/Volumes/D/khanakia/go/bin/impl	(version: v1.1.0 built with go: go1.23.1)
	goplay:	/Volumes/D/khanakia/go/bin/goplay	(version: v1.0.0 built with go: go1.23.1)
	dlv:	/Volumes/D/khanakia/go/bin/dlv	(version: v1.23.0 built with go: go1.23.1)
	staticcheck:	/Volumes/D/khanakia/go/bin/staticcheck	(version: v0.5.1 built with go: go1.23.1)

## Go env

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

	GO111MODULE='on'
	GOARCH='arm64'
	GOBIN=''
	GOCACHE='/Volumes/D/khanakia/Library/Caches/go-build'
	GOENV='/Volumes/D/khanakia/Library/Application Support/go/env'
	GOEXE=''
	GOEXPERIMENT=''
	GOFLAGS=''
	GOHOSTARCH='arm64'
	GOHOSTOS='darwin'
	GOINSECURE=''
	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='/usr/local/go'
	GOSUMDB='sum.golang.org'
	GOTMPDIR=''
	GOTOOLCHAIN='auto'
	GOTOOLDIR='/usr/local/go/pkg/tool/darwin_arm64'
	GOVCS=''
	GOVERSION='go1.23.2'
	GODEBUG=''
	GOTELEMETRY='local'
	GOTELEMETRYDIR='/Volumes/D/khanakia/Library/Application Support/go/telemetry'
	GCCGO='gccgo'
	GOARM64='v8.0'
	AR='ar'
	CC='clang'
	CXX='clang++'
	CGO_ENABLED='1'
	GOMOD='/dev/null'
	GOWORK='/Volumes/D/www/projects/khanakia/saasfly/saasfly_api/go.work'
	CGO_CFLAGS='-O2 -g'
	CGO_CPPFLAGS=''
	CGO_CXXFLAGS='-O2 -g'
	CGO_FFLAGS='-O2 -g'
	CGO_LDFLAGS='-O2 -g'
	PKG_CONFIG='pkg-config'
	GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/sk/k6vkn27d2xbcxcj1ll6dvwjw0000gn/T/go-build1905123601=/tmp/go-build -gno-record-gcc-switches -fno-common'
	

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/go-jose/go-jose/v4 is not in your go.mod file (go mod tidy) 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:

I am using go workspace and I have a module exists in go.mod file

Screenshots or recordings

If applicable, add screenshots or recordings to help explain your problem.

Check VIDEO Here: https://www.youtube.com/watch?v=ULb7VB1ANrw

Image

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions