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

eggspi/golangbiblioteggs virker ikke #179

Open
sshine opened this issue Feb 13, 2022 · 0 comments
Open

eggspi/golangbiblioteggs virker ikke #179

sshine opened this issue Feb 13, 2022 · 0 comments

Comments

@sshine
Copy link
Collaborator

sshine commented Feb 13, 2022

For noget tid siden skiftede Go-økosystemet væk fra GOPATH og benytter nu kun GOROOT.

Derfor virker eggspi/compile for Go ikke.

I modsætning til GOPATH som kan indeholde flere stier, findes der kun én GOROOT, der som udgangspunkt er /usr/local/go. Den indeholder standardbiblioteker, men er ikke skrivbar. Hvis man gerne vil tilføje biblioteker, og ikke ønsker at gøre /usr/local/go skrivbar, skal man enten lægge bibliotekerne online, eller også kan man gøre en lokal mappe (fx eggspi/golangbiblioteggs) til sin GOROOT ved at lave en fil der hedder go.mod, og tilføje nogle replace-direktiver sådan at ens ekstra biblioteker kan ligge i samme mappe på filsystemet uden at blive hentet via download.

Det var så langt jeg kom før jeg blev træt af Go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant