Date: Thursday, July 22, 2021 @ 09:49:47
  Author: polyzen
Revision: 983055

Use --offline for cargo build/test

Continuation from my last commit where cargo deps are fetched in prepare().

Modified:
  diskus/trunk/PKGBUILD
  gitprompt-rs/trunk/PKGBUILD
  hacksaw/trunk/PKGBUILD
  lychee-link-checker/trunk/PKGBUILD
  rink/trunk/PKGBUILD
  rust-analyzer/trunk/PKGBUILD
  shotgun/trunk/PKGBUILD
  skim/trunk/PKGBUILD
  toastify/trunk/PKGBUILD
  tree-sitter/trunk/PKGBUILD
  vaultwarden/trunk/PKGBUILD
  vim-clap/trunk/PKGBUILD
  vivid/trunk/PKGBUILD

------------------------------------+
 diskus/trunk/PKGBUILD              |    9 +++++++--
 gitprompt-rs/trunk/PKGBUILD        |    2 +-
 hacksaw/trunk/PKGBUILD             |    2 +-
 lychee-link-checker/trunk/PKGBUILD |    4 ++--
 rink/trunk/PKGBUILD                |    4 ++--
 rust-analyzer/trunk/PKGBUILD       |    2 +-
 shotgun/trunk/PKGBUILD             |    7 ++++++-
 skim/trunk/PKGBUILD                |    4 ++--
 toastify/trunk/PKGBUILD            |    4 ++--
 tree-sitter/trunk/PKGBUILD         |    2 +-
 vaultwarden/trunk/PKGBUILD         |    4 ++--
 vim-clap/trunk/PKGBUILD            |   10 ++++++----
 vivid/trunk/PKGBUILD               |    4 ++--
 13 files changed, 35 insertions(+), 23 deletions(-)

Modified: diskus/trunk/PKGBUILD
===================================================================
--- diskus/trunk/PKGBUILD       2021-07-22 09:24:10 UTC (rev 983054)
+++ diskus/trunk/PKGBUILD       2021-07-22 09:49:47 UTC (rev 983055)
@@ -12,14 +12,19 @@
 
source=("diskus-$pkgver.tar.gz::https://static.crates.io/crates/diskus/diskus-$pkgver.crate";)
 
sha512sums=('c532de84356f43109242805b47f6154b0f837c176e5aa016c5f2c221ff2b77da91511cc6e01351924f38cffd5f26c7e8740a4475def1f7cbcffc29501c3321b1')
 
+prepare() {
+  cd diskus-$pkgver
+  cargo fetch --locked
+}
+
 build() {
   cd diskus-$pkgver
-  cargo build --release --locked
+  cargo build --release --locked --offline
 }
 
 check() {
   cd diskus-$pkgver
-  cargo test --release --locked
+  cargo test --release --locked --offline
 }
 
 package() {

Modified: gitprompt-rs/trunk/PKGBUILD
===================================================================
--- gitprompt-rs/trunk/PKGBUILD 2021-07-22 09:24:10 UTC (rev 983054)
+++ gitprompt-rs/trunk/PKGBUILD 2021-07-22 09:49:47 UTC (rev 983055)
@@ -20,7 +20,7 @@
 
 build() {
   cd $pkgname-$pkgver
-  cargo build --release --locked
+  cargo build --release --locked --offline
 }
 
 package() {

Modified: hacksaw/trunk/PKGBUILD
===================================================================
--- hacksaw/trunk/PKGBUILD      2021-07-22 09:24:10 UTC (rev 983054)
+++ hacksaw/trunk/PKGBUILD      2021-07-22 09:49:47 UTC (rev 983055)
@@ -19,7 +19,7 @@
 
 build() {
   cd hacksaw-$pkgver
-  cargo build --release --locked
+  cargo build --release --locked --offline
 }
 
 package() {

Modified: lychee-link-checker/trunk/PKGBUILD
===================================================================
--- lychee-link-checker/trunk/PKGBUILD  2021-07-22 09:24:10 UTC (rev 983054)
+++ lychee-link-checker/trunk/PKGBUILD  2021-07-22 09:49:47 UTC (rev 983055)
@@ -22,12 +22,12 @@
 
 build() {
   cd $_name-$pkgver
-  cargo build --release --locked
+  cargo build --release --locked --offline
 }
 
 check() {
   cd $_name-$pkgver
-  cargo test --release --locked
+  cargo test --release --locked --offline
 }
 
 package() {

Modified: rink/trunk/PKGBUILD
===================================================================
--- rink/trunk/PKGBUILD 2021-07-22 09:24:10 UTC (rev 983054)
+++ rink/trunk/PKGBUILD 2021-07-22 09:49:47 UTC (rev 983055)
@@ -19,12 +19,12 @@
 
 build() {
   cd rink-$pkgver
-  cargo build --release --locked
+  cargo build --release --locked --offline
 }
 
 check() {
   cd rink-$pkgver
-  cargo test --release --locked
+  cargo test --release --locked --offline
 }
 
 package() {

Modified: rust-analyzer/trunk/PKGBUILD
===================================================================
--- rust-analyzer/trunk/PKGBUILD        2021-07-22 09:24:10 UTC (rev 983054)
+++ rust-analyzer/trunk/PKGBUILD        2021-07-22 09:49:47 UTC (rev 983055)
@@ -21,7 +21,7 @@
 
 build() {
   cd $pkgname
-  cargo build --release --locked
+  cargo build --release --locked --offline
 }
 
 package() {

Modified: shotgun/trunk/PKGBUILD
===================================================================
--- shotgun/trunk/PKGBUILD      2021-07-22 09:24:10 UTC (rev 983054)
+++ shotgun/trunk/PKGBUILD      2021-07-22 09:49:47 UTC (rev 983055)
@@ -15,9 +15,14 @@
 
source=("shotgun-$pkgver.tar.gz::https://static.crates.io/crates/shotgun/shotgun-$pkgver.crate";)
 
sha512sums=('671c20268573a52f655d3db484e9387f019487332415359029e6b5de7bd683954c131007bbfa6d2efa035508db09bcf6b5c04c1c9dcff4e29de47618d4f04a1c')
 
+prepare() {
+  cd shotgun-$pkgver
+  cargo fetch --locked
+}
+
 build() {
   cd shotgun-$pkgver
-  cargo build --release --locked
+  cargo build --release --locked --offline
 }
 
 package() {

Modified: skim/trunk/PKGBUILD
===================================================================
--- skim/trunk/PKGBUILD 2021-07-22 09:24:10 UTC (rev 983054)
+++ skim/trunk/PKGBUILD 2021-07-22 09:49:47 UTC (rev 983055)
@@ -25,12 +25,12 @@
 
 build() {
   cd skim-$pkgver
-  cargo build --release --locked
+  cargo build --release --locked --offline
 }
 
 check() {
   cd skim-$pkgver
-  cargo test --release --locked
+  cargo test --release --locked --offline
 }
 
 package() {

Modified: toastify/trunk/PKGBUILD
===================================================================
--- toastify/trunk/PKGBUILD     2021-07-22 09:24:10 UTC (rev 983054)
+++ toastify/trunk/PKGBUILD     2021-07-22 09:49:47 UTC (rev 983055)
@@ -9,7 +9,7 @@
 license=('Apache' 'MIT')
 depends=('dbus')
 makedepends=('rust')
-source=("$url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz")
+source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
 
sha512sums=('ea1bd87e059c945ec69734685f3c91aa573e47665627647279dbf373f1f9db163d1803afab988fffe7ff7df6b32a6d1cf9873080516b8d87895844bd97800cc0')
 
 prepare() {
@@ -19,7 +19,7 @@
 
 build() {
   cd $pkgname-$pkgver
-  cargo build --release --locked
+  cargo build --release --locked --offline
 }
 
 package() {

Modified: tree-sitter/trunk/PKGBUILD
===================================================================
--- tree-sitter/trunk/PKGBUILD  2021-07-22 09:24:10 UTC (rev 983054)
+++ tree-sitter/trunk/PKGBUILD  2021-07-22 09:49:47 UTC (rev 983055)
@@ -27,7 +27,7 @@
 
   cd cli
 
-  cargo build --release --locked --all-features
+  cargo build --release --locked --offline --all-features
 }
 
 package() {

Modified: vaultwarden/trunk/PKGBUILD
===================================================================
--- vaultwarden/trunk/PKGBUILD  2021-07-22 09:24:10 UTC (rev 983054)
+++ vaultwarden/trunk/PKGBUILD  2021-07-22 09:49:47 UTC (rev 983055)
@@ -39,12 +39,12 @@
 build() {
   cd $pkgname-$pkgver
   rustup set profile minimal
-  BWRS_VERSION="$pkgver" cargo build --release --locked --features 
sqlite,mysql,postgresql
+  BWRS_VERSION="$pkgver" cargo build --release --locked --offline --features 
sqlite,mysql,postgresql
 }
 
 check() {
   cd $pkgname-$pkgver
-  cargo test --release --locked --features sqlite,mysql,postgresql
+  cargo test --release --locked --offline --features sqlite,mysql,postgresql
 }
 
 package() {

Modified: vim-clap/trunk/PKGBUILD
===================================================================
--- vim-clap/trunk/PKGBUILD     2021-07-22 09:24:10 UTC (rev 983054)
+++ vim-clap/trunk/PKGBUILD     2021-07-22 09:49:47 UTC (rev 983055)
@@ -22,20 +22,22 @@
   sed -i 's,/setup_python.py,/pythonx/clap/setup_python.py,' \
     autoload/clap/filter/sync/python.vim
   cargo fetch --locked
+  cd pythonx/clap/fuzzymatch-rs
+  cargo fetch --locked
 }
 
 build() {
   cd $pkgname-$pkgver
-  cargo build --release --locked
+  cargo build --release --locked --offline
   cd pythonx/clap/fuzzymatch-rs
-  cargo build --release --locked
+  cargo build --release --locked --offline
 }
 
 check() {
   cd $pkgname-$pkgver/crates
-  cargo test --release
+  cargo test --release --offline
   cd ../pythonx/clap/fuzzymatch-rs
-  cargo test --no-default-features --release --locked
+  cargo test --no-default-features --release --locked --offline
 }
 
 package() {

Modified: vivid/trunk/PKGBUILD
===================================================================
--- vivid/trunk/PKGBUILD        2021-07-22 09:24:10 UTC (rev 983054)
+++ vivid/trunk/PKGBUILD        2021-07-22 09:49:47 UTC (rev 983055)
@@ -9,7 +9,7 @@
 license=('Apache' 'MIT')
 depends=('gcc-libs')
 makedepends=('rust')
-source=("$url/archive/v$pkgver/vivid-v$pkgver.tar.gz")
+source=("$url/archive/v$pkgver/vivid-$pkgver.tar.gz")
 
b2sums=('2f1cdf94cbab5163b078227b0200c61e05da32d542d9989eae58c5d757df557c074aa9c26cc7049a513cb5d55b01c0942aef82154d762169b02e38f37ebde94d')
 
 prepare() {
@@ -19,7 +19,7 @@
 
 build() {
   cd vivid-$pkgver
-  cargo build --release --locked
+  cargo build --release --locked --offline
 }
 
 package() {

Reply via email to