feat: download all src files for go mod dependencies for use in vscode

Without this, the LSP within the container continually complains that the source for go files cannot be found. While this method isn't _exactly_ correct, it does help with development.
This commit is contained in:
Jose Diaz-Gonzalez
2022-10-22 16:46:49 -04:00
parent 03f43b602d
commit 524ce9b7d7
2 changed files with 26 additions and 1 deletions

View File

@@ -18,7 +18,7 @@
"source=${localWorkspaceFolder}/tmp/data/,target=/mnt/dokku/,type=bind"
],
"overrideCommand": false,
"postCreateCommand": "make setup-deploy-tests",
"postCreateCommand": "download-go-mod && make setup-deploy-tests",
"runArgs": ["--init"],
"workspaceFolder": "/root/go/src/github.com/dokku/dokku",
"workspaceMount": "type=bind,source=${localWorkspaceFolder},target=/root/go/src/github.com/dokku/dokku,consistency=cached"