-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 releasing workflow #5026
Changes from all commits
4fff839
8b51c29
9a1a203
03669a1
e6c16a6
9c116e9
57d8583
63c37b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,6 @@ var ( | |
"docs", | ||
"examples", | ||
"hack", | ||
"plugin", | ||
"releasing", | ||
"site", | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,8 +45,9 @@ func (dg *DotGitData) AbsPath() string { | |
|
||
// NewDotGitDataFromPath wants the incoming path to hold dotGit | ||
// E.g. | ||
// ~/gopath/src/sigs.k8s.io/kustomize | ||
// ~/gopath/src/github.com/monopole/gorepomod | ||
// | ||
// ~/gopath/src/sigs.k8s.io/kustomize | ||
// ~/gopath/src/github.com/monopole/gorepomod | ||
func NewDotGitDataFromPath(path string) (*DotGitData, error) { | ||
if !utils.DirExists(filepath.Join(path, dotGitFileName)) { | ||
return nil, fmt.Errorf( | ||
|
@@ -126,7 +127,7 @@ func (dg *DotGitData) checkModules(modules []*protoModule) error { | |
} | ||
} else { | ||
// Do the relative path and short name make sense? | ||
if !strings.HasSuffix(pm.PathToGoMod(), string(shortName)) { | ||
if !strings.HasPrefix(string(shortName), "plugin/") && !strings.HasSuffix(pm.PathToGoMod(), string(shortName)) { | ||
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. Why do we need to exclude plugins here? 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. Good question. I think this was a left over attempt to fix the problem that in the end was caused by one plugin having an invalid module name. I'll revert it in the unpinning PR. |
||
return fmt.Errorf( | ||
"in %q, the module name %q doesn't match the file's pathToGoMod %q", | ||
file, shortName, pm.PathToGoMod()) | ||
|
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.
Jeff specifically added this in #3910. Why? 😕