Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update chart-repo.md #1088

Merged
merged 1 commit into from
Jul 19, 2019
Merged

Update chart-repo.md #1088

merged 1 commit into from
Jul 19, 2019

Conversation

jessehu
Copy link
Contributor

@jessehu jessehu commented Jul 19, 2019

No description provided.

@@ -36,11 +36,11 @@ Kubeapps is a Kubernetes-native application. To develop and test Kubeapps compon

```bash
cd $MONOCULAR_DIR
dep ensure
go mod tidy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you need to run this when working with monocular?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so. Without the packages in $GOPATH/pkg/mod/ downloaded by 'go mod tidy', monocular code cannot compile.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when using go modules, any command (like go build or go test) will download the required modules. go mod tidy is used to remove unnecessary dependencies from the go.mod file, that's why I found it weird that you needed that.

In any case, the chart-repo is meant to be built using it's Dockerfile (and it's built within a container) so running go mod tidy won't have any effect.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you're right. I referred to the monocular doc as below and 'dep ensure' will report error could not find project Gopkg.toml.

https://github.com/helm/monocular/blob/master/docs/development.md#developing-chartsvc
image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, I see, I don't think it's necessary but we can live it that way for consistency. Thanks!

@andresmgot andresmgot merged commit dc36837 into vmware-tanzu:master Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants