这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@josegonzalez
Copy link
Member

In the effort to make local development nicer for myself, I cleaned up how go modules are loaded for devcontainers. I also ran the following script from the plugins directory to cleanup all go mod files.

for plugin in *; do
    if [[ ! -f "/root/go/src/github.com/dokku/dokku/plugins/$plugin/go.mod" ]]; then
        continue
    fi

    pushd /root/go/src/github.com/dokku/dokku/plugins/$plugin
    echo "$plugin"
    go mod tidy;
    go mod download;
    popd >/dev/null;
done

…tainer

This allows gopls to handle autocompletion by setting multiple workspace roots it can traverse for dependencies.
This cleans up the development environment for each module.
@josegonzalez josegonzalez merged commit 0a2ea67 into master Jan 22, 2022
@josegonzalez josegonzalez deleted the devcontainer-go-mod-support branch January 22, 2022 09:46
github-actions bot pushed a commit that referenced this pull request Jan 28, 2022
# History

## 0.26.8

Install/update via the bootstrap script:

```shell
wget https://raw.githubusercontent.com/dokku/dokku/v0.26.8/bootstrap.sh
sudo DOKKU_TAG=v0.26.8 bash bootstrap.sh
```

### Bug Fixes

- #5016: @josegonzalez Properly support the --global flag when detecting the scheduler
- #5015: @josegonzalez Avoid popd errors when dokku is run as root

### New Features

- #5006: @josegonzalez Better go mod support in VSCode Dev Containers

### Documentation

- #5014: @josegonzalez Clarify that all run containers are removed at the end of process execution
- #5010: @josegonzalez Add documentation for ps:restore
- #5009: @josegonzalez Clarify installation documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants