From f81a5cdf3c5555671524f65ac9aa11ed394dff97 Mon Sep 17 00:00:00 2001 From: Himangi Saraogi Date: Tue, 19 Feb 2019 07:11:11 -0800 Subject: [PATCH] Allow digits in process name (#78) ## Before this PR ``` Attaching to build2.palantir.pt build2.palantir.pt | Failed to read config files invalid service name 'build2' in static config: process name 'build2' does not match required pattern '^[a-z-]+$' build2.palantir.pt | panic: invalid service name 'build2' in static config: process name 'build2' does not match required pattern '^[a-z-]+$' build2.palantir.pt | build2.palantir.pt | goroutine 1 [running]: build2.palantir.pt | main.main() build2.palantir.pt | /go/src/github.com/palantir/go-java-launcher/launcher/main/main.go:98 +0x135c build2.palantir.pt exited with code 2 ``` ## After this PR The above failure doesnt happen --- launchlib/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launchlib/config.go b/launchlib/config.go index 11de1fab..34bae06d 100644 --- a/launchlib/config.go +++ b/launchlib/config.go @@ -29,7 +29,7 @@ import ( ) var ( - processNamePattern = regexp.MustCompile("^[a-z-]+$") + processNamePattern = regexp.MustCompile("^[a-z0-9-]+$") ) type VersionedConfig struct {