No more plugin pinning.

This commit is contained in:
monopole
2021-05-20 13:31:50 -07:00
parent 38c66d213a
commit 22720a8b7a

View File

@@ -26,14 +26,14 @@ var (
// TODO: make this a PATH-like flag // TODO: make this a PATH-like flag
// e.g.: --excludes ".git:.idea:site:docs" // e.g.: --excludes ".git:.idea:site:docs"
excSlice = []string{ exclusions = []string{
".git", ".git",
".github", ".github",
".idea", ".idea",
"docs", "docs",
"examples", "examples",
"hack", "hack",
// "plugin", "plugin",
"releasing", "releasing",
"site", "site",
} }
@@ -94,7 +94,7 @@ func (a *Args) ConditionalModule() misc.ModuleShortName {
func (a *Args) Exclusions() (result []string) { func (a *Args) Exclusions() (result []string) {
// Make sure the list has no repeats. // Make sure the list has no repeats.
for k := range utils.SliceToSet(excSlice) { for k := range utils.SliceToSet(exclusions) {
result = append(result, k) result = append(result, k)
} }
return return