-
Notifications
You must be signed in to change notification settings - Fork 64
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
Validate usage of knative.dev/hack/shell #32
Validate usage of knative.dev/hack/shell #32
Conversation
e957121
to
f4ed6bd
Compare
This is follow up to knative.dev/hack#30 intended to disallow using this shell out package without control. If new place is required to use this package, first a allow PR should be made to this repo.
f4ed6bd
to
1f1f81b
Compare
What do you think of this solution, to block not allowed usages @n3wscott ? |
"knative.dev/hack/shell" | ||
) | ||
|
||
func TestCallerNotAllowed(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it just needs the deprecated comment, this test will be removed in the vendoring process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course test will be removed.
But, there's a validation added to shell/project.go that will return error in used from not allowed location
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW: Using deprecated comments will upset the linter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW: Using deprecated comments will upset the linter.
That is the point. You have to opt-in to using the deprecated code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
Let's try this.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cardil, n3wscott 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 |
This is follow up to #30 intended to disallow using this shell out package without control.
If a new place is required to use this package, an "allow PR" should be made to this repo first.
/cc @n3wscott