Edge-home-orchestration-go: ๋งŒ๋“œ๋Š” ๋™์•ˆ ์ฒญ์†Œํ•˜๊ธฐ

์— ๋งŒ๋“  2021๋…„ 07์›” 13์ผ  ยท  9์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: lf-edge/edge-home-orchestration-go

make ๋„์ค‘ go.sum ํŒŒ์ผ๊ณผ vendor ํด๋”๊ฐ€ ์กด์žฌํ•˜์ง€ ์•Š์œผ๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

make distclean ๋กœ๊ทธ

t25kim<strong i="11">@t25kim</strong>:~/work/edge-home-orchestration-go$ make distclean

--------------------------------------
  Build clean
--------------------------------------
go: github.com/Microsoft/[email protected]: missing go.sum entry; to add it:
        go mod download github.com/Microsoft/go-winio
make: *** [Makefile:185: clean] Error 1
t25kim<strong i="12">@t25kim</strong>:~/work/edge-home-orchestration-go$ vi Makefile
t25kim<strong i="13">@t25kim</strong>:~/work/edge-home-orchestration-go$ GO111MODULE=on go clean
go: github.com/Microsoft/[email protected]: missing go.sum entry; to add it:
        go mod download github.com/Microsoft/go-winio

make ๋กœ๊ทธ

t25kim<strong i="19">@t25kim</strong>:~/work/edge-home-orchestration-go$ make
make clean
make[1]: Entering directory '/home/t25kim/work/edge-home-orchestration-go'

--------------------------------------
  Build clean
--------------------------------------
go: github.com/Microsoft/[email protected]: missing go.sum entry; to add it:
        go mod download github.com/Microsoft/go-winio
make[1]: *** [Makefile:185: clean] Error 1
make[1]: Leaving directory '/home/t25kim/work/edge-home-orchestration-go'
make: *** [Makefile:236: all] Error 2

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

@t25kim go 1.16.4 ๋ฒ„์ „์„ ์‚ฌ์šฉํ•˜์—ฌ ์ด ์˜ค๋ฅ˜๋ฅผ ์žฌํ˜„ํ•  ์ˆ˜ ์žˆ์—ˆ๊ณ  ์ด๋ฏธ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์„ ์•Œ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ค๋Š˜ ํ…Œ์ŠคํŠธํ•ด๋ณด๊ณ  ์—…๋ฐ์ดํŠธ ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค

๋ชจ๋“  9 ๋Œ“๊ธ€

@t25kim ์ด ์˜ค๋ฅ˜๋ฅผ ์žฌํ˜„ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ๊ท€ํ•˜์˜ ์กฐ์น˜๋ฅผ ์ž์„ธํžˆ ์„ค๋ช…ํ•ด ์ฃผ์‹ญ์‹œ์˜ค.

@t25kim ์ด ์˜ค๋ฅ˜๋ฅผ ์žฌํ˜„ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ๊ท€ํ•˜์˜ ์กฐ์น˜๋ฅผ ์ž์„ธํžˆ ์„ค๋ช…ํ•ด ์ฃผ์‹ญ์‹œ์˜ค.

@tdrozdovsky go.sum ํŒŒ์ผ๊ณผ vendor ํด๋”๋ฅผ ์‚ญ์ œํ•œ ํ›„ make distclean ๋˜๋Š” make ๋ฅผ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

virtual-pc@virtualpc-VirtualBox:~/projects/test/edge-home-orchestration-go$ ls
api  bin  build  cmd  configs  deployments  Dockerfile  docs  examples  go.mod  internal  Kconfig  LICENSE  Makefile  README.md  test  third_party  tools
virtual-pc@virtualpc-VirtualBox:~/projects/test/edge-home-orchestration-go$ make distclean 

--------------------------------------
  Build clean
--------------------------------------
make[1]: Entering directory '/home/virtual-pc/projects/test/edge-home-orchestration-go/examples/native'
make[1]: Leaving directory '/home/virtual-pc/projects/test/edge-home-orchestration-go/examples/native'
virtual-pc@virtualpc-VirtualBox:~/projects/test/edge-home-orchestration-go$ 

git clone์—์„œ ์ด๊ฒƒ์„ ์‹œ๋„ํ•ด๋ณด์ž.

t25kim<strong i="6">@t25kim</strong>:~$ git clone https://github.com/lf-edge/edge-home-orchestration-go.git
Cloning into 'edge-home-orchestration-go'...
remote: Enumerating objects: 5013, done.
remote: Counting objects: 100% (527/527), done.
remote: Compressing objects: 100% (301/301), done.
remote: Total 5013 (delta 214), reused 458 (delta 186), pack-reused 4486
Receiving objects: 100% (5013/5013), 2.10 MiB | 6.54 MiB/s, done.
Resolving deltas: 100% (2859/2859), done.
t25kim<strong i="7">@t25kim</strong>:~$ cd edge-home-orchestration-go/
t25kim<strong i="8">@t25kim</strong>:~/edge-home-orchestration-go$ make distclean

--------------------------------------
  Build clean
--------------------------------------
go: github.com/Microsoft/[email protected]: missing go.sum entry; to add it:
    go mod download github.com/Microsoft/go-winio
make: *** [Makefile:185: clean] Error 1
t25kim<strong i="9">@t25kim</strong>:~/edge-home-orchestration-go$ make
make clean
make[1]: Entering directory '/home/t25kim/edge-home-orchestration-go'

--------------------------------------
  Build clean
--------------------------------------
go: github.com/Microsoft/[email protected]: missing go.sum entry; to add it:
    go mod download github.com/Microsoft/go-winio
make[1]: *** [Makefile:185: clean] Error 1
make[1]: Leaving directory '/home/t25kim/edge-home-orchestration-go'
make: *** [Makefile:236: all] Error 2
t25kim<strong i="10">@t25kim</strong>:~/edge-home-orchestration-go$ 

@t25kim ์ด๊ฑด ๋งˆ๋ฒ•์ด์•ผ! )))

virtual-pc@virtualpc-VirtualBox:~/projects/test$ git clone https://github.com/lf-edge/edge-home-orchestration-go.git
Cloning into 'edge-home-orchestration-go'...
remote: Enumerating objects: 5013, done.
remote: Counting objects: 100% (527/527), done.
remote: Compressing objects: 100% (301/301), done.
remote: Total 5013 (delta 214), reused 458 (delta 186), pack-reused 4486
Receiving objects: 100% (5013/5013), 2.10 MiB | 1.24 MiB/s, done.
Resolving deltas: 100% (2859/2859), done.
virtual-pc@virtualpc-VirtualBox:~/projects/test$ cd edge-home-orchestration-go/
virtual-pc@virtualpc-VirtualBox:~/projects/test/edge-home-orchestration-go$ make distclean 

--------------------------------------
  Build clean
--------------------------------------
make[1]: Entering directory '/home/virtual-pc/projects/test/edge-home-orchestration-go/examples/native'
make[1]: Leaving directory '/home/virtual-pc/projects/test/edge-home-orchestration-go/examples/native'
virtual-pc@virtualpc-VirtualBox:~/projects/test/edge-home-orchestration-go$ ls
api  build  cmd  configs  deployments  Dockerfile  docs  examples  go.mod  go.sum  internal  Kconfig  LICENSE  Makefile  README.md  test  third_party  tools
virtual-pc@virtualpc-VirtualBox:~/projects/test/edge-home-orchestration-go$ rm go.sum 
virtual-pc@virtualpc-VirtualBox:~/projects/test/edge-home-orchestration-go$ ls
api  build  cmd  configs  deployments  Dockerfile  docs  examples  go.mod  internal  Kconfig  LICENSE  Makefile  README.md  test  third_party  tools
virtual-pc@virtualpc-VirtualBox:~/projects/test/edge-home-orchestration-go$ make clean

--------------------------------------
  Build clean
--------------------------------------
make[1]: Entering directory '/home/virtual-pc/projects/test/edge-home-orchestration-go/examples/native'
make[1]: Leaving directory '/home/virtual-pc/projects/test/edge-home-orchestration-go/examples/native'
virtual-pc@virtualpc-VirtualBox:~/projects/test/edge-home-orchestration-go$ 

@t25kim ์ด๊ฑด ๋งˆ๋ฒ•์ด์•ผ! )))

virtual-pc@virtualpc-VirtualBox:~/projects/test$ git clone https://github.com/lf-edge/edge-home-orchestration-go.git
Cloning into 'edge-home-orchestration-go'...
remote: Enumerating objects: 5013, done.
remote: Counting objects: 100% (527/527), done.
remote: Compressing objects: 100% (301/301), done.
remote: Total 5013 (delta 214), reused 458 (delta 186), pack-reused 4486
Receiving objects: 100% (5013/5013), 2.10 MiB | 1.24 MiB/s, done.
Resolving deltas: 100% (2859/2859), done.
virtual-pc@virtualpc-VirtualBox:~/projects/test$ cd edge-home-orchestration-go/
virtual-pc@virtualpc-VirtualBox:~/projects/test/edge-home-orchestration-go$ make distclean 

--------------------------------------
  Build clean
--------------------------------------
make[1]: Entering directory '/home/virtual-pc/projects/test/edge-home-orchestration-go/examples/native'
make[1]: Leaving directory '/home/virtual-pc/projects/test/edge-home-orchestration-go/examples/native'
virtual-pc@virtualpc-VirtualBox:~/projects/test/edge-home-orchestration-go$ ls
api  build  cmd  configs  deployments  Dockerfile  docs  examples  go.mod  go.sum  internal  Kconfig  LICENSE  Makefile  README.md  test  third_party  tools

go.sum ๋•Œ make distclean go.sum ์–ด๋–ป๊ฒŒ ์–ป์—ˆ์Šต๋‹ˆ๊นŒ?

virtual-pc@virtualpc-VirtualBox:~/projects/test/edge-home-orchestration-go$ ls
api  build  cmd  configs  deployments  Dockerfile  docs  examples  go.mod  internal  Kconfig  LICENSE  Makefile  README.md  test  third_party  tools
virtual-pc@virtualpc-VirtualBox:~/projects/test/edge-home-orchestration-go$ GO111MODULE=on go clean
virtual-pc@virtualpc-VirtualBox:~/projects/test/edge-home-orchestration-go$ ls
api  build  cmd  configs  deployments  Dockerfile  docs  examples  go.mod  go.sum  internal  Kconfig  LICENSE  Makefile  README.md  test  third_party  tools
virtual-pc@virtualpc-VirtualBox:~/projects/test/edge-home-orchestration-go$

@tdrozdovsky ์ด์œ ๋ฅผ ์ฐพ์•˜์Šต๋‹ˆ๋‹ค. go v1.16์œผ๋กœ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

t25kim<strong i="7">@t25kim</strong>:~/edge-home-orchestration-go$ go version
go version go1.16.5 linux/amd64
t25kim<strong i="8">@t25kim</strong>:~/edge-home-orchestration-go$ make distclean

--------------------------------------
  Build clean
--------------------------------------
go: github.com/Microsoft/[email protected]: missing go.sum entry; to add it:
    go mod download github.com/Microsoft/go-winio
make: *** [Makefile:185: clean] Error 1
t25kim<strong i="11">@t25kim</strong>:~/edge-home-orchestration-go$ go version
go version go1.15.14 linux/amd64
t25kim<strong i="12">@t25kim</strong>:~/edge-home-orchestration-go$ ls
api  build  cmd  configs  deployments  Dockerfile  docs  examples  go.mod  internal  Kconfig  LICENSE  Makefile  README.md  test  third_party  tools
t25kim<strong i="13">@t25kim</strong>:~/edge-home-orchestration-go$ make distclean

--------------------------------------
  Build clean
--------------------------------------
make[1]: Entering directory '/home/t25kim/edge-home-orchestration-go/examples/native'
make[1]: Leaving directory '/home/t25kim/edge-home-orchestration-go/examples/native'

@t25kim go 1.16.4 ๋ฒ„์ „์„ ์‚ฌ์šฉํ•˜์—ฌ ์ด ์˜ค๋ฅ˜๋ฅผ ์žฌํ˜„ํ•  ์ˆ˜ ์žˆ์—ˆ๊ณ  ์ด๋ฏธ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์„ ์•Œ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ค๋Š˜ ํ…Œ์ŠคํŠธํ•ด๋ณด๊ณ  ์—…๋ฐ์ดํŠธ ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰