Edge-home-orchestration-go: Go Clean pendant la fabrication

Créé le 13 juil. 2021  ·  9Commentaires  ·  Source: lf-edge/edge-home-orchestration-go

Si le fichier go.sum et le dossier vendor n'existent pas lors de la création, l'erreur suivante se produit :

Bûche de 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

Bûche de 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
bug

Commentaire le plus utile

@t25kim En utilisant une version go 1.16.4, j'ai pu reproduire cette erreur et je sais déjà comment la corriger. je vais tester et faire une mise a jour aujourd'hui

Tous les 9 commentaires

@t25kim Je ne peux pas reproduire cette erreur, veuillez décrire vos actions plus en détail.

@t25kim Je ne peux pas reproduire cette erreur, veuillez décrire vos actions plus en détail.

@tdrozdovsky Pourriez-vous exécuter make distclean ou make après avoir supprimé le fichier go.sum et le dossier vendor ?

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$ 

Essayons ceci à partir de 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 C'est magique ! )))

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 C'est magique ! )))

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

Comment avez-vous obtenu go.sum alors que make distclean ?

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 j'ai trouvé la raison. Pouvez-vous le faire avec 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 En utilisant une version go 1.16.4, j'ai pu reproduire cette erreur et je sais déjà comment la corriger. je vais tester et faire une mise a jour aujourd'hui

Cette page vous a été utile?
0 / 5 - 0 notes

Questions connexes

MoonkiHong picture MoonkiHong  ·  6Commentaires

MoonkiHong picture MoonkiHong  ·  5Commentaires

t25kim picture t25kim  ·  3Commentaires

t25kim picture t25kim  ·  5Commentaires

t25kim picture t25kim  ·  3Commentaires