Package Details: bitwarden-cli 1.12.1-1

Git Clone URL: https://aur.archlinux.org/bitwarden-cli.git (read-only, click to copy)
Package Base: bitwarden-cli
Description: The command line vault (Windows, macOS, & Linux). bitwarden.com
Upstream URL: https://github.com/bitwarden/cli
Licenses: GPL3
Conflicts: bitwarden-cli-git
Submitter: StephenBrown2
Maintainer: libertylocked
Last Packager: libertylocked
Votes: 24
Popularity: 1.84
First Submitted: 2018-05-21 20:41
Last Updated: 2020-09-29 03:57

Latest Comments

1 2 3 Next › Last »

grawlinson commented on 2020-05-30 07:40

1.10.0 now has zsh completion, but it needs to be generated manually.

This is my PKGBUILD for reference:

# Maintainer: libertylocked <libertylocked@disroot.org>
# Contributor: Stephen Brown II <Stephen [dot] Brown2 [at] gmail.com>
# Contributor: George Rawlinson <george@rawlinson.net.nz>

pkgname=bitwarden-cli
pkgver=1.10.0
_jslibcommit='212a2e3745e6e0e2b3057ed308c47daf6aeefbc8'
pkgrel=1
pkgdesc="Command-line interface to manage a Bitwarden vault"
arch=('x86_64')
url="https://github.com/bitwarden/cli"
license=('GPL3')
makedepends=(nodejs-lts-dubnium npm git python)
conflicts=('bitwarden-cli-git')
options=('!strip')
source=("bitwarden-cli-${pkgver}.tar.gz::https://github.com/bitwarden/cli/archive/v${pkgver}.tar.gz"
        "jslib-${_jslibcommit}.tar.gz::https://github.com/bitwarden/jslib/archive/${_jslibcommit}.tar.gz")
sha512sums=('f3d02a98e32b8cb8b33276d5c60ada1136b175623e60b7f008fc10bf175fd935e601a097c7dc5410d461838d82a1fc71c16b35d6bb03aa78dc5567e8db250c2d'
            '1ca8085e54d7c4ba3952109d5d854b1dc633669bc7d7791c1fa9b4c0d905a9ba7bb3059b72c17de048bb7f007f7711b690fb3fc9b3a4c73fdc37749ed2a59b09')

prepare() {
  rmdir "${srcdir}/cli-${pkgver}/jslib"
  ln -s "${srcdir}/jslib-${_jslibcommit}" "${srcdir}/cli-${pkgver}/jslib"
}

build() {
  # build binary
  cd "${srcdir}/cli-${pkgver}"
  npm install --cache "${srcdir}/npm-cache"
  npm run dist:lin

  # create zsh completions
  ./dist/linux/bw completion --shell zsh > _bw
}

package() {
  # package binary
  install -Dm755 -t "${pkgdir}/usr/bin" "${srcdir}/cli-${pkgver}/dist/linux/bw"

  # package zsh completions
  install -Dm644 -t "${pkgdir}/usr/share/zsh/site-functions" "${srcdir}/cli-${pkgver}/_bw"
}

grawlinson commented on 2020-02-25 09:30

agowa338: That's honestly a really strange error to run into. Thanks for posting a workaround. If this is not resolved upstream, it would be ideal if the maintainer for npm was made aware that git could be a runtime dependency.

Running namcap on the resulting package results in this warning also:

bitwarden-cli E: Dependency gcc-libs detected and not included (libraries ['usr/lib/libgcc_s.so.1', 'usr/lib/libstdc++.so.6'] needed in files ['usr/bin/bw'])

I'm not too sure if I want to go any further down this rabbit hole, so I'll leave it at that!

agowa338 commented on 2020-02-23 11:45

For all that tried building this packet using makechrootpkg in a clean environment, there is one build dependency missing 'git', without it being installed, the build crashes using cb() never called

I currently don't know if this is a issue within the bitwarden-cli project or npm itself. I think it might be within npm itself, because of the unspecified error it causes, I would expect a more meaningful error message if it was invoked through the build steps.

Here is the corresponding issue at the npm repo: https://github.com/npm/cli/issues/933

libertylocked commented on 2019-12-13 08:13

Sorry for the delay. I updated the package to 1.8.0

djmattyg007 commented on 2019-11-17 05:07

Would be good to get an update on this package.

libertylocked commented on 2019-07-17 06:35

Maybe it only builds with node 10, I'm not sure. Anyway I've updated the PKGBUILD to use NVM to build. It should work now. Thanks for the report.

mvdan commented on 2019-07-17 02:01

I get failures involving "No available node version satisfies 'node11'". Which is a bit weird, as I have the latest nodejs package, 11.15.0-1. Any ideas? It seems like it's the package:lin script that caused the error.

libertylocked commented on 2019-07-16 06:54

Sorry it took this long. I've had some problems with runtime jsdom dependency. Now the build bundles nodejs in the bin which isn't ideal and adds a little bit to the install size, but it'll have to do for now.

rafael commented on 2019-07-11 15:18

Is anyone planning to update this package? It's been out of date for almost 4 months now.

libertylocked commented on 2019-01-10 18:03

Thanks for reporting. I've updated the wrapper script