You are not logged in.
Pages: 1
Hello there!
I'm trying to download a package from the AUR, sharenix. but it doesn't go too well.
I've tried to both install it using Yay and cloning the Git repo and doing makepkg -si on it but to no success.
I get this error when I try to install it:
go: cannot find main module, but found .git/config in /home/jonte/.cache/yay/sharenix-git/src/build/src/github.com/Francesco149/sharenix
to create a module there, run:
go mod init
==> ERROR: A failure occurred in build().
Aborting...
error making: sharenix-git
I have tried running "go mod init" but then I get this error:
go: cannot determine module path for source directory /home/jonte (outside GOPATH, module path must be specified)
Example usage:
'go mod init example.com/m' to initialize a v0 or v1 module
'go mod init example.com/m/v2' to initialize a v2 module
How do I fix this so that I can install from the AUR again?
Thank you and have a great day!
Last edited by FlatEarthGary (2021-03-13 10:27:23)
Offline
For clarification, I think you mean you have been able to download the PKGBUILD, but the process that makes that into a package is failing.
If this is correct, please change the title of your post as you don't have trouble downloading from the AUR.
You probably would be better served by posting onto the specific AUR page you mention so that the maintainer is aware of the issue.
Regards
Paul.
Offline
For clarification, I think you mean you have been able to download the PKGBUILD, but the process that makes that into a package is failing.
If this is correct, please change the title of your post as you don't have trouble downloading from the AUR.
You probably would be better served by posting onto the specific AUR page you mention so that the maintainer is aware of the issue.Regards
Paul.
Ohh, yeah that's correct sorry about that, I've fixed it!
To clarify it's not problem with that specific package, I get the same error when I try to download other packages...
EDIT: Never mind, it works with other packages.
Last edited by FlatEarthGary (2021-03-13 10:31:34)
Offline
I get the same error. The package is broken. The package isn't up to date with upstream either. Carefully contact the maintainer about his broken package, first as a comment on the AUR page, then after a fair waiting period per email. The package hasn't been touched in over two years.
I have no idea how to fix this, as I have no clue about go.
Offline
The following allows the package to build for me. It does not change the PKGBUILD to follow Go package guidelines
git diff
diff --git a/PKGBUILD b/PKGBUILD
index 99405d4..d7e9655 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -30,6 +30,7 @@ prepare() {
build() {
export GOPATH="$srcdir/build"
cd "$GOPATH/src/github.com/Francesco149/sharenix"
+ go env -w GO111MODULE=auto
go get ./...
}
Offline
Pages: 1