-
Notifications
You must be signed in to change notification settings - Fork 206
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
Cannot install from source due to replace directive #282
Comments
Thanks a lot for taking the time to report this! I'll admit, I didn't know about this. I'll think about how to do the adaptations to the parquet library in a different way so that replacement isn't needed. No promises however - I'd like to avoid creating a full fork as that would require much more changes, and keeping up with the origin would be much harder. In the meantime I recommend git cloning + installing or using the Homebrew core formula (which clones + builds behind the scenes). |
Oh, don't worry. I just downloaded the pre-built binary from the release, I wasn't looking for anything unreleased |
I can confirm that the problem seems to exist since the integration of parquet, so since version 0.7.0.
vs.
Unfortunately, this also breaks my Nix builds from source, on which I am dependent on NixOS, as I cannot use the pre-built binaries.
I can imagine that other platforms, for various reasons, do not want to use pre-built binaries as well. Is there any way to support the recovery of the build process? |
Would it be possible in the Nix package to instead It seems like it only breaks when go installing directly from a remote source control system (github in this case). So in other words:
It looks like that's also what the Homebrew core formula does: https://github.com/Homebrew/homebrew-core/blob/master/Formula/octosql.rb There is also an issue in the golang repo tracking this problem: golang/go#44840 |
To put it simplifiedly, a Nevertheless, this suggestion put me on the right track, for which I am grateful! For the test definition of buildPhase = ''
go install
''; I received multiple times the error message Is Go >= 1.18 a requirement for the project? If so, this could possibly be documented. For future reference, here is my Nix expression for other Nix users:
|
Yes, good point! I've added it to the README. |
@arikgrahl you can use Not the most convenient, but once you do it once it becomes very easy. It is faster since there is no need to rebuild everytime and sometimes better to report things since it is the distributed binary. |
Thank you for the advice, I am aware of As I stated above, I can successfully built the application with the given Nix expression, which takes less than 18 seconds on comodity hardware, including running the test suite. |
From my experience, due to how easy it is to install Go binaries from source, people install using Admittedly, since you are a Nix user I doubt this would apply to you. |
As also stated in PR #294, my contribution of a Nix package of The PR #294 should also clarify the not working installation instructions, which are the essence of this issue. From my point of view the issue can be closed by accepting the PR #294. |
Installing a module-aware binary without modules has been blocked since Go 1.13 if I remember correctly.
The suggested command downloads the source but doesn't build it.
Replacing that with the new command using module installation (with a version) also does not work because replace directives are not supported with the install command.
The text was updated successfully, but these errors were encountered: