#Trying to install your package from github

18 messages · Page 1 of 1 (latest)

uncut stratus
#

My current github repo: https://github.com/MantasSilanskas/Tomita-EMOS-XML-Parcer

Tried running go install github.com/MantasSilanskas/Tomita-EMOS-XML-Parcer@latest and keep getting go: downloading github.com/MantasSilanskas/Tomita-EMOS-XML-Parcer v0.0.0-20221022145519-820114108036 go: github.com/MantasSilanskas/Tomita-EMOS-XML-Parcer@latest: module github.com/MantasSilanskas/Tomita-EMOS-XML-Parcer@latest found (v0.0.0-20221022145519-820114108036), but does not contain package github.com/MantasSilanskas/Tomita-EMOS-XML-Parcer what i am doing wrong?

GitHub

Parced used to parse xml file of emos for UAB Tomita - GitHub - MantasSilanskas/Tomita-EMOS-XML-Parcer: Parced used to parse xml file of emos for UAB Tomita

#

I would love that my friend could install this code and could do something like go run Tomita etc

spare oriole
#

as it is currently structured, you would need to run go install github.com/MantasSilanskas/Tomita-EMOS-XML-Parcer/cmd@latest, and then you would run it like cmd because that is the directory name

#

or, you can just move the content of cmd to the module root and then your current install command will be what you wrote, and to run it would be Tomita-EMOS-XML-Parcer

#

or, you can move it to cmd/Tomita or just rename cmd to Tomita, and then go install that path and run it like Tomita

uncut stratus
spare oriole
uncut stratus
#

probs should recreate all repo etc to solve this problem?

spare oriole
#

all you need to do is change the module name in go.mod

uncut stratus
#

like this?

spare oriole
#

no, the module name should be the full url minus scheme

#

module github.com/MantasSilanskas/Tomita-EMOS-XML-Parcer

uncut stratus
#

still getting

spare oriole
#

you'll have to wait ten minutes or so for the module proxy to stop serving the bad version