Coder Social home page Coder Social logo

Comments (10)

wheleph avatar wheleph commented on June 15, 2024 4

For other non-hardcore users of homebrew, here's how to upgrade a non-bottled formula:

brew upgrade --build-from-source browserpass

The "usual" upgrade gave me the below error:

~$ brew upgrade browserpass
==> Upgrading 1 outdated package:
amar1729/formulae/browserpass 3.0.8 -> 3.1.0
==> Fetching amar1729/formulae/browserpass
==> Downloading https://github.com/Amar1729/homebrew-formulae/releases/download/
curl: (22) The requested URL returned error: 404

Error: browserpass: Failed to download resource "browserpass"
Download failed: https://github.com/Amar1729/homebrew-formulae/releases/download/browserpass-3.0.8/browserpass-3.1.0.big_sur.bottle.tar.gz

from homebrew-formulae.

sgahr avatar sgahr commented on June 15, 2024 3

Hi,
I had the same issue:

~ % brew install amar1729/formulae/browserpass
browserpass 3.0.8 is already installed but outdated (so it will be upgraded).
==> Fetching amar1729/formulae/browserpass
==> Downloading https://github.com/Amar1729/homebrew-formulae/releases/download/browserpass-3.0.8/browserpass-3.1.0.big_sur.bottle.tar.gz
curl: (22) The requested URL returned error: 404                                                                                                                                                                                               

Error: browserpass: Failed to download resource "browserpass"
Download failed: https://github.com/Amar1729/homebrew-formulae/releases/download/browserpass-3.0.8/browserpass-3.1.0.big_sur.bottle.tar.gz

This helped me:

brew upgrade --build-from-source amar1729/formulae/browserpass

from homebrew-formulae.

acca avatar acca commented on June 15, 2024 1

I suppose it was a temporary error, I got it working with brew upgrade browserpass:

~$ brew upgrade browserpass
Running `brew update --auto-update`...
==> Upgrading 1 outdated package:
amar1729/formulae/browserpass 3.0.8 -> 3.1.0
==> Fetching amar1729/formulae/browserpass
==> Downloading https://github.com/browserpass/browserpass-native/files/3062744/request.hex.txt
==> Downloading from https://objects.githubusercontent.com/github-production-repository-file-5c1aeb/128682745/3062744?X-Amz-Algorithm=AWS4-HM
###################################################################################################################################### 100.0%
==> Downloading https://github.com/browserpass/browserpass-native/archive/refs/tags/3.1.0.tar.gz
==> Downloading from https://codeload.github.com/browserpass/browserpass-native/tar.gz/refs/tags/3.1.0
==> Upgrading amar1729/formulae/browserpass
  3.0.8 -> 3.1.0
==> make configure
==> make
==> make install
==> Caveats
********************************************************************************
* To configure your browser, RUN THE FOLLOWING:

$ PREFIX='/opt/homebrew/opt/browserpass' make hosts-BROWSER-user -f '/opt/homebrew/opt/browserpass/lib/browserpass/Makefile'

* Where BROWSER is one of the following: [chromium chrome vivaldi brave firefox]
********************************************************************************

from homebrew-formulae.

zfil avatar zfil commented on June 15, 2024 1

Hi,
Still failing here, brew upgrade, brew upgrade browserpass, brew uninstall browserpass then brew install browserpass all fails ...
I had to explicitely ask to install from source with brew install --build-from-source browserpass to finality being able to install it.

from homebrew-formulae.

douglassd avatar douglassd commented on June 15, 2024 1

brew install --build-from-source browserpass
worked for me

from homebrew-formulae.

Amar1729 avatar Amar1729 commented on June 15, 2024 1

Edit: tl:dr; you should be fine if you run brew uninstall browserpass && brew install browserpass


@fkneist @dactylroot sorry for the delay in responding. The reason you are seeing two different versions (3.0.8 and 3.1.0) is related to what i said up above: something about the brew CI has changed and no longer works as expected. Thus, a "bottle" (homebrew's terminology for a prebuilt distribution of binary files) for 3.1.0 never got built. The last version for which a bottle was built was 3.0.8, hence that version is still around at line 8.

There's two three solutions -

  1. i fix the CI (which i promise i have messed around with, but there's something unclear to me that make it not quite work as it should; i would like to come back to it again soon)
  2. have users ask brew to build the current version of the formulae from source (which was a big part of the discussion in this issue)

The difference is:

# this will install the most recent bottled version, which is 3.0.8
brew install browserpass

# this will build browserpass from the source defined on line4 (which is 3.1.0)
brew install --build-from-source browserpass
  1. remove the bottle stanza entirely (which i've just done), so brew will default to building from source for all users.

side note: i forget exactly when, but there will be a switchover of maintained macOS versions in homebrew. we are also very close to the transition from x86 to apple silicon, so at some point in the near future builds of browserpass via this tap will no longer ship with bottles for x86 (the /usr/local/Cellar location). I think that means you'll always have to build from source if on x86.

from homebrew-formulae.

Amar1729 avatar Amar1729 commented on June 15, 2024

Thanks for the comment @wheleph , I should've mentioned that in the original issue. Although I am surprised brew didn't fallback to building from source after failing to build the bottle, I thought that (...used to be?) what it would do. Good that it seems to be working now.

from homebrew-formulae.

simono41 avatar simono41 commented on June 15, 2024

brew install --build-from-source browserpass
worked for me

from homebrew-formulae.

fkneist avatar fkneist commented on June 15, 2024

Hi, I had the same issue:

~ % brew install amar1729/formulae/browserpass
browserpass 3.0.8 is already installed but outdated (so it will be upgraded).
==> Fetching amar1729/formulae/browserpass
==> Downloading https://github.com/Amar1729/homebrew-formulae/releases/download/browserpass-3.0.8/browserpass-3.1.0.big_sur.bottle.tar.gz
curl: (22) The requested URL returned error: 404                                                                                                                                                                                               

Error: browserpass: Failed to download resource "browserpass"
Download failed: https://github.com/Amar1729/homebrew-formulae/releases/download/browserpass-3.0.8/browserpass-3.1.0.big_sur.bottle.tar.gz

This helped me:

brew upgrade --build-from-source amar1729/formulae/browserpass

I had the same error message, what threw me off, is that there are two different versions in the URL:
.../browserpass-3.0.8/browserpass-3.1.0.big_sur.bottle.tar.gz

Then I checked the formula (but I'm not familiar with Ruby and formulae) and I noticed:

might this be the issue? Like I said I'm not familiar with formulae and just clutching at straws here... If the formula is fine, please ignore

Thanks for maintaining, I'm a daily user!

from homebrew-formulae.

dactylroot avatar dactylroot commented on June 15, 2024

Hi, I don't know if this is related but I also have issues updating ever since 3.0.8 (initially reported here). I noticed brew is installing new versions to path /usr/local/Cellar/browserpass/3.0.8 and seems to be clobbering existing files/configurations there. This may be causing issues with local builds.

e.g.

$ brew info browserpass
==> amar1729/formulae/browserpass: stable 3.1.0 (bottled)
Host application for browser extension providing access to your password store
https://github.com/browserpass/browserpass-native
/usr/local/Cellar/browserpass/3.0.8 (11 files, 3.6MB) *
  Poured from bottle on 2022-09-07 at 12:48:09
From: https://github.com/amar1729/homebrew-formulae/blob/HEAD/Formula/browserpass.rb
==> Dependencies
Build: coreutils ✔, gnu-sed ✔, go ✘
Required: gpg ✔, pinentry ✔, pinentry-mac ✔
==> Caveats
********************************************************************************
* To configure your browser, RUN THE FOLLOWING:

$ PREFIX='/usr/local/Cellar/browserpass/3.1.0' make hosts-BROWSER-user -f '/usr/local/Cellar/browserpass/3.1.0/lib/browserpass/Makefile'

* Where BROWSER is one of the following: [chromium chrome vivaldi brave firefox]
********************************************************************************
$ ls /usr/local/Cellar/browserpass/
3.0.8

from homebrew-formulae.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.