Skip to content

Commit

Permalink
Fix completion stderr (#92)
Browse files Browse the repository at this point in the history
* Fix completion stderr

update trust-check dependencies
use trust-check manifest strip
update ci

* Switch master refs to main
  • Loading branch information
alexheretic authored Dec 21, 2023
1 parent 40d718f commit 84aac1e
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Create and Publish a Docker image

on:
push:
branches: [ master ]
branches: [main]

env:
REGISTRY: ghcr.io
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: Test

on:
push:
branches: [ master ]
branches: [main]
pull_request:
branches: [ master ]
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
steps:
- run: rustup update stable
- run: wget -c https://github.com/koalaman/shellcheck/releases/download/latest/shellcheck-latest.linux.x86_64.tar.xz -O - | tar -xvJ -C /tmp/
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: ./test
run: PATH="/tmp/shellcheck-latest:$PATH" ./test
2 changes: 1 addition & 1 deletion aur
Submodule aur updated from 278a72 to fcc239
2 changes: 1 addition & 1 deletion completion/bash/aurto
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ _aurto() {
&& command -v aur >/dev/null 2>&1
then
local search
search=$(aur pkglist -P "^$cur")
search=$(aur pkglist -P "^$cur" 2>/dev/null)
mapfile -t COMPREPLY < <(compgen -W "$search" -- "$cur")
return 0
fi
Expand Down
2 changes: 1 addition & 1 deletion completion/fish/aurto.fish
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
function __aurto_complete_add
set -l search (commandline -ct)
if [ (string length $search) -gt 0 ]
aur pkglist -P "^$search"
aur pkglist -P "^$search" 2>/dev/null
end
end

Expand Down
2 changes: 1 addition & 1 deletion completion/zsh/_aurto
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ _aurto_available_packages ()
_aurto_add ()
{
local pref=$words[$CURRENT]
_aur_packages=($(aur pkglist -P "^$pref"))
_aur_packages=($(aur pkglist -P "^$pref" 2>/dev/null))
compadd "$@" -a -- _aur_packages
}

Expand Down
4 changes: 2 additions & 2 deletions dockerREADME.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ docker run -d --name aurto-docker \
--tmpfs /tmp --tmpfs /run --tmpfs /run/lock \
-v aurto_db:/var/cache/pacman/aurto \
-v aurto_config:/etc/aurto \
ghcr.io/alexheretic/aurto:master
ghcr.io/alexheretic/aurto:main
```

> Make sure to replace **aurto_db** and **aurto_config** with an actual path if you don't want it to store the pacman repo and config files in a docker volume
Expand All @@ -27,4 +27,4 @@ Also recommended: Add an alias to .bashrc so you only have to write aurto instea

```sh
alias aurto="docker exec -it --user aurto aurto-docker aurto"
```
```
1 change: 0 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ all:
@rm -rf target

@cd trust-check && CARGO_INCREMENTAL=0 cargo build --release
@strip $(CARGO_TARGET_DIR)/release/trust-check

@install -D conf/aurto.pacman.conf target/etc/pacman.d/aurto
@install -Dm440 conf/50_aurto_passwordless -t target/etc/sudoers.d
Expand Down
58 changes: 29 additions & 29 deletions trust-check/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion trust-check/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "trust-check"
version = "0.1.0"
authors = ["Alex Butler <[email protected]>"]
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand All @@ -13,3 +13,4 @@ json = "0.12"
lto = true
panic = "abort"
opt-level = "s"
strip = true

0 comments on commit 84aac1e

Please sign in to comment.