You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\github\AHDBapp>go build .
go: cannot find main module, but found .git/config in C:\github\AHDBapp
to create a module there, run:
go mod init
Go complains about main module. Just do what it suggests:
C:\github\AHDBapp>go mod init
go: creating new go.mod: module github.com/mooreatv/AHDBapp
go: to add module requirements and sums:
go mod tidy
Go asks to add module requirements and sums. Again obey go's suggestion:
C:\github\AHDBapp>go mod tidy
go: finding module for package github.com/go-sql-driver/mysql
go: finding module for package fortio.org/fortio/log
go: found fortio.org/fortio/log in fortio.org/fortio v1.68.0
go: found github.com/go-sql-driver/mysql in github.com/go-sql-driver/mysql v1.8.1
The problem is that "fortio.org/fortio/log" is deprecated: package has moved to [fortio.org/log].
Edit the './lua2json/lua2json.go' file and replace a line:
"fortio.org/fortio/log"
with:
"fortio.org/log"
Again update requirements and sums:
C:\github\AHDBapp>go mod tidy
go: finding module for package github.com/go-sql-driver/mysql
go: finding module for package fortio.org/fortio/log
go: found fortio.org/fortio/log in fortio.org/fortio v1.68.0
go: found github.com/go-sql-driver/mysql in github.com/go-sql-driver/mysql v1.8.1
go version go1.23.4 windows/amd64
Steps to reproduce the issues (and workarounds):
Clone the repo:
In the repo folder issue build command:
Go complains about main module. Just do what it suggests:
Go asks to add module requirements and sums. Again obey go's suggestion:
Try to build the repo:
The problem is that "fortio.org/fortio/log" is deprecated: package has moved to [fortio.org/log].
Edit the './lua2json/lua2json.go' file and replace a line:
"fortio.org/fortio/log"
with:
"fortio.org/log"
Again update requirements and sums:
Repeat the build command:
This is the same problem like above: "fortio.org/fortio/log" is deprecated: package has moved to [fortio.org/log].
But this time in
ahdb.go
file.Edit the './ahdb.go' file and replace a line:
"fortio.org/fortio/log"
with:
"fortio.org/log"
Repeat the build command again:
C:\github\AHDBapp>go build .
This time the build command succeeds and
AHDBapp.exe
is created:Unfortunately executing the command:
leads to the problem described in #10.
The text was updated successfully, but these errors were encountered: