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

Build error: github.com/KirkMcDonald/golua/lua: build constraints exclude all Go files #17

Open
daiplusplus opened this issue Aug 1, 2023 · 0 comments

Comments

@daiplusplus
Copy link

daiplusplus commented Aug 1, 2023

  • I'm trying to build factoriodump from source on Windows 10.
  • The README.md file says to install Go, packr, a C compiler, Lua 5.3, and some Lua libraries.
    • I have a default systemwide Go go version go1.20.6 windows/amd64
    • I have VS2019 and VS2022 installed with the VC compiler, but I'm unsure how to configure that in this case.
    • I installed Lua 5.3 and Lua 5.4 via winget (the README.md says to install 5.3, but the current version of luarocks complains if I didn't have 5.4 also available).
    • packr build seems to be for Packr v1 which seems to have disappeared - I'm only able to get Packr v2 packr2 to install, but it seems to work.
  • When running cd factorio-tools\factoriodump or cd factorio-tools\factorioload then go build or packr2 build I get this error:
C:\git\clones\kirkmcdonald\factorio-tools\factoriodump>packr2 build
github.com/KirkMcDonald/golua/lua: build constraints exclude all Go files in C:\Users\David\go\pkg\mod\github.com\!kirk!mc!donald\[email protected]\lua
Error: exit status 1

(Using --verbose doesn't show any relevant extra details, unfortunately).

None of the .go files in C:\Users\David\go\pkg\mod\github.com\!kirk!mc!donald\[email protected]\lua have build-constraint comments in them, so I'm unsure where that's coming from.


(running go clean -modcache didn't solve the problem: any attempt to build will fail with the same build-constraints error as above)

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

No branches or pull requests

1 participant