Skip to content

Commit

Permalink
Merge remote-tracking branch 'go-starter/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/build-test.yml
  • Loading branch information
mwieser committed Nov 19, 2021
2 parents a075e1e + 81de9de commit a31f7b3
Show file tree
Hide file tree
Showing 240 changed files with 11,581 additions and 1,481 deletions.
10 changes: 9 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
"[sql]": {
"editor.formatOnSave": true
},
// There are handly utility scripts within /scripts that we invoke via go run.
// These scripts (and its dependencies) should never be consumed by the actual server directly
// Thus they are flagged to require the "scripts" build tag.
// We only inform gopls and the vscode go compiler here, that it has to set this build tag if it sees such a file.
"go.buildTags": "scripts",
"gopls": {
// Add parameter placeholders when completing a function.
"usePlaceholders": true,
Expand All @@ -60,13 +65,16 @@
"-count=1",
"-v"
],
"go.coverMode": "atomic", // atomic is required when utilizing -race
"go.delveConfig": {
"dlvLoadConfig": {
// increase max length of strings displayed in debugger
"maxStringLen": 2048,
},
"apiVersion": 2,
}
},
// ensure that the pgFormatter VSCode extension uses the pgFormatter that comes preinstalled in the Dockerfile
"pgFormatter.pgFormatterPath": "/usr/local/bin/pg_format"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
Expand Down
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
**/.git
.devcontainer
.vscode
.pkg
Expand Down
Loading

0 comments on commit a31f7b3

Please sign in to comment.