mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
Allow for files with no suffix
This commit is contained in:
parent
6098987b14
commit
590bda3ee3
0
config/.test/4/LICENCE
Normal file
0
config/.test/4/LICENCE
Normal file
@ -14,7 +14,7 @@ import (
|
||||
|
||||
var (
|
||||
emptyBrew = Homebrew{}
|
||||
filePatterns = []string{"LICENCE.*", "LICENSE.*", "README.*"}
|
||||
filePatterns = []string{"LICENCE*", "LICENSE*", "README*"}
|
||||
)
|
||||
|
||||
// Homebrew contains the brew section
|
||||
|
@ -60,3 +60,15 @@ func TestFixConfigArbitratryENTXT(t *testing.T) {
|
||||
|
||||
os.Chdir(cwd)
|
||||
}
|
||||
|
||||
func TestFixConfigArbitratryENNoSuffix(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
|
||||
cwd, _ := os.Getwd()
|
||||
os.Chdir("./.test/4")
|
||||
|
||||
config := fix(ProjectConfig{})
|
||||
assert.Equal([]string{"LICENCE"}, config.Files)
|
||||
|
||||
os.Chdir(cwd)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user