Closed joe-getcouragenow closed 4 years ago
I'd like to see your fix. At this point, I believe removing the go mod init will also work.
what happens when you do this:
$ cd /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas/ $ ./bc.sh $ ./rc.sh
thanks for your patience...
SO this does work, and opens all the apps...
build-all:
cd $(CAN_LIB_FSPATH) && go mod init
cd $(CAN_LIB_FSPATH) && chmod +x *.sh
cd $(CAN_LIB_FSPATH) && ./bc.sh
cd $(CAN_LIB_FSPATH) && ./rc.sh
Without the go mod init, you get this log:
#cd /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas && go mod init
cd /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas && chmod +x *.sh
cd /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas && ./bc.sh
go: cannot find main module, but found .git/config in /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas
to create a module there, run:
cd .. && go mod init
go: cannot find main module, but found .git/config in /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas
to create a module there, run:
cd .. && go mod init
go: cannot find main module, but found .git/config in /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas
to create a module there, run:
cd .. && go mod init
go: cannot find main module, but found .git/config in /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas
to create a module there, run:
cd .. && go mod init
go: cannot find main module, but found .git/config in /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas
to create a module there, run:
cd .. && go mod init
go: cannot find main module, but found .git/config in /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas
to create a module there, run:
cd .. && go mod init
go: cannot find main module, but found .git/config in /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas
to create a module there, run:
cd .. && go mod init
go: cannot find main module, but found .git/config in /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas
to create a module there, run:
cd .. && go mod init
go: cannot find main module, but found .git/config in /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas
to create a module there, run:
cd .. && go mod init
go: cannot find main module, but found .git/config in /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas
to create a module there, run:
cd .. && go mod init
go: cannot find main module, but found .git/config in /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas
to create a module there, run:
cd .. && go mod init
go: cannot find main module, but found .git/config in /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas
to create a module there, run:
cd .. && go mod init
go: cannot find main module, but found .git/config in /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas
to create a module there, run:
cd .. && go mod init
go: cannot find main module, but found .git/config in /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas
to create a module there, run:
cd .. && go mod init
go: cannot find main module, but found .git/config in /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas
to create a module there, run:
cd .. && go mod init
cd /Users/apple/workspace/go/src/github.com/ajstarks/giocanvas && ./rc.sh
./rc.sh: line 5: ./alpha: No such file or directory
./rc.sh: line 5: ./concentric: No such file or directory
./rc.sh: line 5: ./compchart: No such file or directory
./rc.sh: line 5: ./confetti: No such file or directory
./rc.sh: line 5: ./eclipse: No such file or directory
./rc.sh: line 5: ./flowers: No such file or directory
./rc.sh: line 5: ./hello: No such file or directory
./rc.sh: line 5: ./lines: No such file or directory
./rc.sh: line 5: ./mondrian: No such file or directory
./rc.sh: line 5: ./polar: No such file or directory
./rc.sh: line 5: ./sunearth: No such file or directory
./rc.sh: line 5: ./tile: No such file or directory
./rc.sh: line 5: ./transform: No such file or directory
./rc.sh: line 5: ./twrap: No such file or directory
./rc.sh: line 5: ./play: No such file or directory
so i think this is resolved then ???
will close. at this stage i'm not using go modules, so you can remove it from your scripts.
I'm not sure why you are using Makefiles, as the standard go build commands are smart enough not to rebuild if not required.
I use makefiles because I have to do lots of context switching / work on so many things at once. So a makefile makes it easy to see how each project is built.
"horses for courses" as they say :)
Cool.
Did a checkout on master, but build is broken due to dependencies.
Do you want to fix or should i have a go ??
i get: