-
Notifications
You must be signed in to change notification settings - Fork 25
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
Version check fails [after upgrade to gopass 1.10] #171
Comments
This also blocks automatic auto fill suggestions based on the uri. Having to search for it as a result is very inconvenient. Maybe it still should warn user about outdated versions without disabling this functionality? |
Same, however I'm not actually using an outdated version. Not sure what happened. Maybe there was a regression in the v1.10.1 release? |
The version I am getting via the gopass json api seems to be wrong (You can use
|
Thanks a lot for the reports and suggestions. Yes, that was an issue with the Makefile in gopass using "v" as a prefix to the version, which could not be parsed as a valid semantic version string. Therefore the fallback "0.0.0" was used, which does not pass the gopassbridge version check. The fix is here: https://github.com/gopasspw/gopass/pull/1568/files The official binaries from Github releases should be unaffected by this issue: https://github.com/gopasspw/gopass/releases/tag/v1.10.1 In case you compile gopass-jsonapi yourself, you can do so again from the latest master to resolve this. |
I'd like to see if we can get this fixed for now in a minor version bump release and move additional changes to 1.10.3? Arch has an official package for gopass, and there were already issues with 1.10.0 that required a bump. Modifying the PKGBUILD and Makefile to compile gopass-jsonapi from master is a bit tedious and I don't think the current packager will be willing to do it, and until then anyone using this is likely to consider alternatives due to the ongoing issues. |
I think it's up to the archlinux package maintainer to update the package. Especially considering that the official 1.10.1 is unaffected by this issue unlike the version packaged by the maintainer. Or you can do it yourself, adding a patch to the pkgbuild script is a trivial thing to do. (It also doesn't have to be master, you or the package mantainer can just use the patch from the pull request mentioned above.) |
I'm affected by this and a bit confused at the moment.
So it's a bug directly in gopass(?)
Why wouldn't it be? Doesn't gopass build its binaries from its own build system…?
The PKGBUILD directly pulls the release from GitHub. I neither understand how that is not "the official 1.10.1" release nor why it would be up to the package maintainer rather than gopass putting out a patch release. I also don't see anything in the PKGBUILD that would introduce this bug, so I don't understand how the packaging process is breaking supposedly non-broken software despite the fact that the PR to fix the problem was against that software and not the package. Clearly I must be misunderstanding something here and would be happy if someone could shed light on it :-) |
I might have misunderstood. Never looked into that too much, just saw the mention of the problem not affecting the current version. My point anyway was not about blaming a maintainer or anything like that. But I do think that if the upstream is not in a hurry to release a supposedly important fix, it is up to maintainer to apply the patch if it is available. The issue, in my opinion, is irritating enough to not wait for some milestone or an upstream release. |
Pinging @Foxboron and @shibumi, the maintainers of Arch's gopass package! <3 tl;dr: gopass 1.10.1 needs this patch to work with the gopassbridge browser plugin. |
|
@blinry interesting.. I used the gopass bridge with current gopass the last days and it worked (I could insert a pw via browser plugin). The only thing that does not work is automatically selecting the correct website. |
That is exactly the issue here. It is irritating, and I would consider it a bug worth fixing with an updated package even if the upstream hasn't released it yet. |
So the point is that on gopass-bridge side, we do check the version on activation. That replaces a potential result matching the host from the api. I would prefer to keep it that way for simplicity. |
|
gopasspw/gopassbridge#171 git-svn-id: file:///srv/repos/svn-community/svn@704904 9fca08f4-af9d-4005-b8df-a31f2cc04f65
gopasspw/gopassbridge#171 git-svn-id: file:///srv/repos/svn-community/svn@704904 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Thanks for the investigations and updates to the Arch package.
My (limited) understanding is, that there are two ways to compile the gopass binaries, via goreleaser or using the The root cause for this "bug" is basically an inconsistency in how these two approaches determine the If somebody wants to improve this situation further, I suggest to open a proposal for changes to the gopass build process and research the different tradeoffs and reasons for maintaining these different build systems. |
I'm experiencing this again after the update to gopass 1.12.x. :-( I first had to install gopass-jsonapi separately via go (since it seems to have been split off) and re-run it, but now the version check fails once again. I have to say (and I know this is the gopassbridge project) the gopass experience has been slightly frustrating, every update so far has caused serious breakage and there's some 4–5 repositories involved now and I don't even know which one to go to. |
@Pharb Should I open a new issue? Is there any information I can provide other than this?
|
@Airblader Sorry for the frustration. gopassbridge is currently lacking a bit of maintenance support, any help is greatly appreciated. Focus is on gopass core development to make sure that gopass itself can be maintained. Could you please try again with the latest main branch, which should fix this version reporting again: gopasspw/gopass-jsonapi#3 |
@Pharb That PR was merged over two weeks ago, I just installed it via |
@Airblader What is the output from |
Other variants like
|
@Airblader Thanks for trying, I can also reproduce the issue and opened gopasspw/gopass-jsonapi#14 I also updated the README to suggest using the Makefile to build the binary instead: gopasspw/gopass-jsonapi@e60e6aa
Generally it should be fine to just download the compiled binary from the latest release: https://github.com/gopasspw/gopass-jsonapi/releases/tag/v1.11.1 |
@Pharb Thanks, downloading the binary from there worked! |
I'm also running into this exact same problem as well. I have the very latest $ gopass version
gopass 1.14.9-git+HEAD go1.19.2 darwin arm64
<root> - gpg 2.3.8 - gitfs 2.37.0
Available Crypto Backends: age, gpgcli, plain
Available Storage Backends: fossilfs, fs, gitfs But like @Airblader pointed out there is no Is this a fix for this? I'm 99.9% sure I'm on the latest version of both binaries, but I suspect there's a bug still with the way the version is being checked/detected? 🤔 |
I think the work-around is to not install via So for me on macOS using Homebrew: $ rm $GOBIN/gopass*
$ brew install gopass gopass-jsonapi |
I get the following message from the bridge after updating to gopass 1.10.1
Despite the message everything works just fine.
The code over here looks fine, so maybe the response from my local gopass is wrong?
Can you give me any hints how to debug this as I've never done anything with browser extensions?
The text was updated successfully, but these errors were encountered: