Skip to content

Commit de4a3c8

Browse files
authored
[build]: change user name to lower case when used in sonic-slave tag (#6319)
sonic-slave tag only allows all lower case. In case the user name is mixed case, we need to change user name to all lower case. Signed-off-by: Guohan Lu <[email protected]>
1 parent 727a451 commit de4a3c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile.work

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ SHELL = /bin/bash
4545

4646
USER := $(shell id -un)
4747
PWD := $(shell pwd)
48+
USER_LC := $(shell echo $(USER) | tr A-Z a-z)
4849

4950
comma := ,
5051

@@ -100,7 +101,7 @@ SLAVE_BASE_IMAGE = $(SLAVE_DIR)
100101
else
101102
SLAVE_BASE_IMAGE = $(SLAVE_DIR)-$(CONFIGURED_ARCH)
102103
endif
103-
SLAVE_IMAGE = $(SLAVE_BASE_IMAGE)-$(USER)
104+
SLAVE_IMAGE = $(SLAVE_BASE_IMAGE)-$(USER_LC)
104105

105106
# Generate the version control build info
106107
$(shell SONIC_VERSION_CONTROL_COMPONENTS=$(SONIC_VERSION_CONTROL_COMPONENTS) \

0 commit comments

Comments
 (0)