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

Running dep ensure to add required dependencies. #79

Merged
merged 1 commit into from
Sep 28, 2018

Conversation

tejal29
Copy link
Contributor

@tejal29 tejal29 commented Sep 28, 2018

Running dep ensure on master

In commit 2a03869, I ran dep prune
which did not respect the [[prune.projects]] and removed
"github.com/knative/test-infra"
Running dep ensure on master fixes this issue.

In commit 2a03869, I ran `dep prune`
which did not respect the [[prune.projects]] and removed
"github.com/knative/test-infra"
Running dep ensure on master fixes this issue.
@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 28, 2018
@knative-prow-robot knative-prow-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Sep 28, 2018
@tejal29 tejal29 changed the title Running dep ensure on master Running dep ensure to pick up required dependencies. Sep 28, 2018
@tejal29 tejal29 changed the title Running dep ensure to pick up required dependencies. Running dep ensure to add required dependencies. Sep 28, 2018
@bobcatfish
Copy link
Collaborator

Can you explain more about why dep prune removed things which were needed? Do we need to investigate that further?

/approve
/lgtm
/hold

(Remove /hold when ready with /hold cancel)

@knative-prow-robot knative-prow-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Sep 28, 2018
@knative-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bobcatfish, tejal29

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tejal29
Copy link
Contributor Author

tejal29 commented Sep 28, 2018

yeah, its bizzare,
Running dep prune says:

tejaldesai@tejaldesai~/go/src/github.com/knative/build-pipeline: (fix_hack)$ dep prune
Pruning is now performed automatically by dep ensure.
Set prune settings in Gopkg.toml and it it will be applied when running ensure.

This command currently still prunes as it always has, to ease the transition.
However, it will be removed in a future version of dep.

Now is the time to update your Gopkg.toml and remove `dep prune` from any scripts.

And then goes and deletes required files anyways

tejaldesai@tejaldesai~/go/src/github.com/knative/build-pipeline: (fix_hack)$ git status | grep 'test-infra'
	deleted:    vendor/github.com/knative/test-infra/scripts/README.md
	deleted:    vendor/github.com/knative/test-infra/scripts/e2e-tests.sh
	deleted:    vendor/github.com/knative/test-infra/scripts/library.sh
	deleted:    vendor/github.com/knative/test-infra/scripts/presubmit-tests.sh
	deleted:    vendor/github.com/knative/test-infra/scripts/release.sh
	vendor/github.com/knative/test-infra/CONTRIBUTING.md
	vendor/github.com/knative/test-infra/LICENSE
	vendor/github.com/knative/test-infra/OWNERS
	vendor/github.com/knative/test-infra/README.md
	vendor/github.com/knative/test-infra/WORKSPACE
	vendor/github.com/knative/test-infra/dummy.go

I will take a look later.

@tejal29
Copy link
Contributor Author

tejal29 commented Sep 28, 2018

/remove hold
dep prune is deprecated and should be avoided as per this thread
golang/dep#1820 (comment)

@tejal29
Copy link
Contributor Author

tejal29 commented Sep 28, 2018

/hold cancel

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 28, 2018
@knative-prow-robot knative-prow-robot merged commit ff6d5e4 into tektoncd:master Sep 28, 2018
chmouel pushed a commit to chmouel/tektoncd-pipeline that referenced this pull request Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants