Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Generates go.mod file automatically #2692

Closed
mrdulin opened this issue Aug 13, 2019 · 2 comments
Closed

Generates go.mod file automatically #2692

mrdulin opened this issue Aug 13, 2019 · 2 comments

Comments

@mrdulin
Copy link

mrdulin commented Aug 13, 2019

What version of Go are you using (go version)?

$ go version
go version go1.12.6 darwin/amd64

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/ldu020/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/ldu020/workspace/go:/Users/ldu020/workspace/github.com/mrdulin/golang"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/ldu020/workspace/github.com/mrdulin/golang/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/38/s8g_rsm13yxd26nwyqzdp2shd351xb/T/go-build159636335=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I am using vscode and go extension. Recently, I found each project of my workspace has a go.mod file in the project root path.

What did you expect to see?

DON'T generate go.mod file in my project of the workspace even it's not related to Golang.

What did you see instead?

├── dl-toolkits
│   ├── LICENSE
│   ├── README.md
│   ├── dist
│   ├── go.mod
│   ├── jest.config.js
│   ├── node_modules
│   ├── package-lock.json
│   ├── package.json
│   ├── src
│   ├── tsconfig.json
│   └── tslint.json
├── docker-research
│   ├── LICENSE
│   ├── README.md
│   ├── examples
│   ├── go.mod
│   ├── node_modules
│   ├── package-lock.json
│   ├── package.json
│   └── test.txt.gz
├── dotfiles
│   ├── LICENSE
│   ├── README.md
│   ├── go.mod
│   ├── iTerm2
│   ├── vim
│   └── zsh

As you can see, there is go.mod file in each project of my workspace, even these projects are not related to Golang

@ramya-rao-a
Copy link
Contributor

Please run the command Preferences: Open Settings (JSON) and share any go related settings you might have added/edited.

Also, can you delete these files, and see when do they re-appear? That can help in narrowing down on what feature of the extension is causing this.

@vscodebot
Copy link

vscodebot bot commented Aug 28, 2019

This issue has been closed automatically because it needs more information and has not had recent activity. Thank you for your contributions.

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants