-
Notifications
You must be signed in to change notification settings - Fork 565
🌱 Bump github.com/operator-framework/api from 0.34.0 to 0.35.0 #3670
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package imports | ||
|
||
import "strings" | ||
|
||
// VendorlessPath returns ipath with any vendor prefixes trimmed. | ||
func VendorlessPath(ipath string) string { | ||
if i := strings.LastIndex(ipath, "/vendor/"); i >= 0 { | ||
return ipath[i+len("/vendor/"):] | ||
} | ||
if strings.HasPrefix(ipath, "vendor/") { | ||
return ipath[len("vendor/"):] | ||
} | ||
return ipath | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add to address to fix:
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
if [[ $# -lt 3 ]]; then | ||
echo "usage: $0 <output> <package> <type>" >&2 | ||
exit 2 | ||
fi | ||
|
||
out="$1" | ||
pkg_path="$2" | ||
type_name="$3" | ||
|
||
# Resolve the fully-qualified package path even when invoked from GOPATH layouts. | ||
module_pkg=$(GO111MODULE="${GO111MODULE:-on}" GOWORK="${GOWORK:-off}" GOFLAGS="${GOFLAGS:-}" go list "$pkg_path") | ||
|
||
GO111MODULE="${GO111MODULE:-on}" GOWORK="${GOWORK:-off}" GOFLAGS="${GOFLAGS:-}" \ | ||
go run github.com/maxbrunsfeld/counterfeiter/v6 -o "$out" "${module_pkg}.${type_name}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add to address to fix:
|
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.
Add to address to fix: