Skip to content

Commit

Permalink
bake: allow dot in target name
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Mar 17, 2022
1 parent 1ca30a5 commit 8f61bfb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bake/bake.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var (
httpPrefix = regexp.MustCompile(`^https?://`)
gitURLPathWithFragmentSuffix = regexp.MustCompile(`\.git(?:#.+)?$`)

validTargetNameChars = `[a-zA-Z0-9_-]+`
validTargetNameChars = `[a-zA-Z0-9._-]+`
targetNamePattern = regexp.MustCompile(`^` + validTargetNameChars + `$`)
)

Expand Down
2 changes: 1 addition & 1 deletion bake/bake_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ func TestTargetName(t *testing.T) {
},
{
target: "a.b",
wantErr: true,
wantErr: false,
},
{
target: "_a",
Expand Down
2 changes: 1 addition & 1 deletion bake/compose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func TestServiceName(t *testing.T) {
},
{
svc: "a.b",
wantErr: true,
wantErr: false,
},
{
svc: "_a",
Expand Down

0 comments on commit 8f61bfb

Please sign in to comment.