When I use command go build . to install OpenTofu on Windows 10 and wsl.
It said
package github.com/opentofu/opentofu: build constraints exclude all Go files in /home/trung/opentofu
Before it, I just git clone from github. What can I do to fix it?
I searched online but still don't see any similar case.
You'll have to run
go buildin thecmd/tofusubdirectory of the repository, which contains the main function.