인프런 커뮤니티 질문&답변
Step 5/7 에러
작성
·
266
1
sudo ./selfservice.sh , docker build -t test ./ 에서 다음과 같이 에러 발생합니다
github.com/jinzhu/gorm
src/github.com/jinzhu/gorm/main.go:166: undefined: sync.Map
src/github.com/jinzhu/gorm/model_struct.go:20: undefined: sync.Map
ERROR: Service 'web' failed to build: The command '/bin/sh -c go get github.com/revel/revel && go get github.com/revel/cmd/revel && go get github.com/jinzhu/gorm && go get github.com/go-sql-driver/mysql' returned a non-zero code: 2
sync.Map 검색하니 go 버전 문제라해서
go version go1.11 linux/amd64 설치하고
Docerfile에 FROM golang:1.11 로 수정하고 진행하였습니다..




