Skip to content

Commit

Permalink
vendors -> vendor (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
angrycub committed Jun 26, 2023
1 parent f7e1721 commit 817ec35
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ project {
# files or folders should be ignored
# Default: []
header_ignore = [
# "vendors/**",
# "vendor/**",
# "**autogen**",
]
Expand Down
2 changes: 1 addition & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ project {
# Supports doublestar glob patterns for more flexibility in defining which
# files or folders should be ignored
header_ignore = [
# "vendors/**",
# "vendor/**",
# "**autogen**",
]
}
Expand Down
4 changes: 2 additions & 2 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func Test_LoadConfigFile(t *testing.T) {
HeaderIgnore: []string{
"asdf.go",
"*.css",
"**/vendors/**.go",
"**/vendor/**.go",
},
Upstream: "hashicorp/super-secret-private-repo",
},
Expand Down Expand Up @@ -316,7 +316,7 @@ func Test_Sprint(t *testing.T) {
expectedOutput: strings.Join([]string{
"project.copyright_holder -> Dummy Corporation",
"project.copyright_year -> 9001",
"project.header_ignore -> [asdf.go *.css **/vendors/**.go]",
"project.header_ignore -> [asdf.go *.css **/vendor/**.go]",
"project.license -> NOT_A_VALID_SPDX",
"project.upstream -> hashicorp/super-secret-private-repo",
"schema_version -> 12\n",
Expand Down
2 changes: 1 addition & 1 deletion config/testdata/project/full_project.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project {
header_ignore = [
"asdf.go",
"*.css",
"**/vendors/**.go",
"**/vendor/**.go",
]

upstream = "hashicorp/super-secret-private-repo"
Expand Down

0 comments on commit 817ec35

Please sign in to comment.