How to run "go mod download" from parent directory? – Docker
Project structure: project_dir/ ├── prj1/ │ ├── feature1/ │ ├─ |─ go.mod │ ├─ |─ main.go │ └─ |─ ... │ └── ... ├── prj2/ │ ├── go.mod │ ├── main.go │ └── Dockerfile │ └── ... └── ... The…
Project structure: project_dir/ ├── prj1/ │ ├── feature1/ │ ├─ |─ go.mod │ ├─ |─ main.go │ └─ |─ ... │ └── ... ├── prj2/ │ ├── go.mod │ ├── main.go │ └── Dockerfile │ └── ... └── ... The…
I want to embed a sub module directory in parent module, but golang remind me that pattern tpl/api_new/*: cannot embed file tpl/api_new/README.md: in different module I know that I can delete go.mod & go.sum and then run "go mod init…
I have used vscode 1.41.1 on my mac for a few months and it worked good until I started to use go modules for dependency management. At the moment I am rewriting a simple tool and introduce packages for separate…
I'm pretty new to golang and docker so after looking around in many threads and internet resources I ended up confused about how I should set things up. My problem is that I'm facing a docker build error of a…
I'd like to replace retool with go modules tools.go "tools as dependencies". However I'm struggling to understand how this works when my developers and CI env all use different operating systems. I want to make sure each environment uses the…