Closed PopescuStefanRadu closed 7 months ago
Installing it via commit sha of v0.21.0 yields:
go install ariga.io/atlas/cmd/atlas@464a1733e51650d30f75b7d924129db0576a4ff5
go: downloading ariga.io/atlas/cmd/atlas v0.13.2-0.20240401184920-464a1733e516
go: ariga.io/atlas/cmd/atlas@464a1733e51650d30f75b7d924129db0576a4ff5 (in ariga.io/atlas/cmd/atlas@v0.13.2-0.20240401184920-464a1733e516):
The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.
Hey @PopescuStefanRadu 👋
You can use the following command to install Atlas:
curl -sSf https://atlasgo.sh | sh
Regarding Go installation: We no longer maintain the cmd/atlas
package as an executable - mainly for technical and time reasons. Atlas is used by various programming languages, like Python and Java, and the binary we distribute includes additional capabilities.
This is a major inconvenience for us without any obvious underlying technical reason.
Our cmd/atlas package uses replace
to avoid adding all cmd/atlas
dependencies for projects that use the root package - ariga.io/atlas
(e.g., entgo.io). There's no way to go get
such packages - we previously used go.work
for this purpose, but it introduced different pains, and I decided to remove it.
@a8m Thank you for this explanation, is it possible to add a deprecation notice here https://pkg.go.dev/ariga.io/atlas/cmd/atlas?
Also, you closed the issue with "completed", when "won't fix" feels more appropriate, not a big deal but kind of misleading for future generations.
Also, you closed the issue with "completed", when "won't fix" feels more appropriate, not a big deal but kind of misleading for future generations.
I didn't know it's possible until now :D
Trying to install latest installs v0.13.1 instead of v0.21.0.
Trying to install v0.21.0 fails.
Could you please have a look into this issue? Thanks!