Skip to content

Commit

Permalink
Install latest version of gopls to resolve build tag issues
Browse files Browse the repository at this point in the history
  • Loading branch information
seankimkdy committed Apr 10, 2024
1 parent 4c730d7 commit 230d703
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
1 change: 1 addition & 0 deletions .devcontainer/postCreate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ sudo apt-get update
sudo apt-get -y install redis

set -ex
go install golang.org/x/tools/gopls@latest
go install gotest.tools/gotestsum@latest
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
18 changes: 0 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,3 @@ See the [contributing guide](./CONTRIBUTING.md) for ways to contribute and instr

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.
For more information, see the [Contributor Covenant Code of Conduct 2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct/).

## Known Issues

### `gopls` Linting Issue in Testing Files on Package Declartion Line
You may see the following error from `gopls` in the `*_test.go` files.

```
This file is within module ".", which is not included in your workspace.
To fix this problem, you can add a go.work file that uses this directory.
See the documentation for more information on setting up your workspace:
https://github.com/golang/tools/blob/master/gopls/doc/workspace.md.
```

This is due to a known issue within `gopls` (https://github.com/golang/go/issues/29202). You can work around this in VS Code by specifying the following in your `settings.json`.

```
"go.buildTags": "unit,integration"
```

0 comments on commit 230d703

Please sign in to comment.