Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot execute init.sh #159

Open
Oipo opened this issue Dec 12, 2022 · 1 comment · May be fixed by #168
Open

Cannot execute init.sh #159

Oipo opened this issue Dec 12, 2022 · 1 comment · May be fixed by #168

Comments

@Oipo
Copy link

Oipo commented Dec 12, 2022

Using the latest go version and the latest main pull, I get the following error:

$ ./init.sh 
? Package name (/home/oipo/Programming/chargepoint/go/modern-go-application) nrg-playground
? Project name (nrg-playground) 
? Binary name (nrg-playground) 
? Application name (nrg-playground) 
? Friendly application name (Nrg Playground) 
? Update README (Y/n) 
? Remove init script (y/N) 
mv: cannot stat '.idea/project.iml': No such file or directory
./init.sh: line 36: .idea/modules.xml.new: No such file or directory
mv: cannot stat '.idea/modules.xml.new': No such file or directory
./init.sh: line 36: .idea/runConfigurations/All_tests.xml.new: No such file or directory
mv: cannot stat '.idea/runConfigurations/All_tests.xml.new': No such file or directory
./init.sh: line 36: .idea/runConfigurations/Debug.xml.new: No such file or directory
mv: cannot stat '.idea/runConfigurations/Debug.xml.new': No such file or directory
./init.sh: line 36: .idea/runConfigurations/Integration_tests.xml.new: No such file or directory
mv: cannot stat '.idea/runConfigurations/Integration_tests.xml.new': No such file or directory
./init.sh: line 36: .idea/runConfigurations/Tests.xml.new: No such file or directory
mv: cannot stat '.idea/runConfigurations/Tests.xml.new': No such file or directory
./init.sh: line 36: .vscode/launch.json.new: No such file or directory
mv: cannot stat '.vscode/launch.json.new': No such file or directory
mv: cannot stat 'cmd/modern-go-application': No such file or directory
find: ‘.gen’: No such file or directory
@peterlodri92
Copy link

The init.sh script tries to modify .vscode/launch.json but doesn't check if the directory exists ->

  • It tries to move cmd/modern-go-application but that directory doesn't exist (it's already renamed to cmd/[XY])
  • It tries to find files in .gen directory which doesn't exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants