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

Upgrading opensnitch fails #593

Closed
yousefvand opened this issue Jan 19, 2022 · 5 comments
Closed

Upgrading opensnitch fails #593

yousefvand opened this issue Jan 19, 2022 · 5 comments

Comments

@yousefvand
Copy link

Describe the bug
yay fails to upgrade from version 1.5.0.r6.9770cf5-1 to 1.5.0.r37.bb25362-1
I have tried go get github.com/golang/protobuf/protoc-gen-go and got protoc-gen-go in $HOME/go/bin but still error exist. I don't set $GOPATH so it is $HOME/go by default (changing it doesn't help).

Include the following information:

To Reproduce
Every time I try to upgrade Opensnitch.

Expected behavior (optional)
Smoothly upgrade to next version (as I always be able to)

Error
cannot find package "github.com/golang/protobuf/protoc-gen-go" in any of: /usr/lib/go/src/github.com/golang/protobuf/protoc-gen-go (from $GOROOT) /home/me/.cache/yay/opensnitch-git/src/gopath/src/github.com/golang/protobuf/protoc-gen-go (from $GOPATH) ==> ERROR: A failure occurred in build(). Aborting... -> error making: opensnitch-git

@gustavo-iniguez-goya
Copy link
Collaborator

Hi @yousefvand ,

I don't use yay, so I don't know what's going on here. The few times I've used it I remember there was an option to delete local sources and compile it from upstream, is it possible that such option exists?

@yousefvand
Copy link
Author

Hi. yay uses upstream (this repo) for compiling. I guess something is wrong with my GO environments variables but I cannot figure it out.

@gustavo-iniguez-goya
Copy link
Collaborator

gustavo-iniguez-goya commented Jan 21, 2022

hey @yousefvand ,

When executing yay -S opensnitch-git does it ask you to cleanBuild before proceeding? Did you try to clean Installed (I)?

[Aur:1] opensnitch-git-1.5.0.r37.bb25362-1

    1 opensnitch-git                             (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 

If it fails with "... exists in the filesystem" try: yay -S --overwrite '*' opensnitch-git

Bear in mind that I'm not an Arch user, so proceed at your own risk O:) I think that you should really ask on the Arch forums.

@yousefvand
Copy link
Author

I did uninstall opensnitch and installed it in clean mode as you suggested. Still get the same error.

@gustavo-iniguez-goya
Copy link
Collaborator

sorry @yousefvand , I don't know how to solve this problem :(. You better ask on Arch forums or even on the AUR page, I'm sure they'll help you.

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

No branches or pull requests

2 participants