Closed texadactyl closed 6 months ago
Please try go get github.com/Konstantin8105/c4go
Same result.
The following (or equivalent) belongs in the Install section of README.md:
Then, find where Konstantin8105/c4go is installed. On my machine, it was
$HOME/go/pkg/mod/github.com/!konstantin8105/c4go@v0.0.0-20230816131851-c5400a76df0f/
Sorry, but it fails the same way as described above. If you think that I messed up, please enlighten me with better instructions than my guessing. Thanks.
I would dig into this but I am in the middle of group project and they need me this weekend.
$ go get github.com/Konstantin8105/c4go
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
Please try:
git clone https://github.com/Konstantin8105/c4go.git
That is what the Installation section should say: git clone https://github.com/Konstantin8105/c4go
.
So, here is the proposed replacement for the current Installation section:
git clone https://github.com/Konstantin8105/c4go
cd c4go
go generate ./...
go install
c4go version
Sample c4go version
console output:
Build time: May 4 20:41:31 2024 UTC
Git hash: "c5400a76df0f5157f234547bef3ae8fb7b692685"
Do you want prepare the pull request with that information?
Thank you for PR.
Пожалуйста
Environment: go version go1.21.6 linux/amd64 Linux installation: Ubuntu 22.04.4 LTS C-compiler: 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
Executing
go get -u github.com/Konstantin8105/c4go
:(no errors reported)
But,
cd $GOPATH/src/github.com/Konstantin8105/c4go
references a non-existent directory and I cannot find a "Konstantin8105" directory anywhere under $GOPATH.I found a directory called
!konstantin8105/c4go@v0.0.0-20230816131851-c5400a76df0f
under$GOPATH/pkg/mod/github.com/
whose contents is as follows:When positioned in that directory,
go generate -v ./...
executes for awhile and then incurs an error which is not obvious as to why:Attached is a zip of the
version
directory.version.zip