Package Details: cooklang-chef 0.10.0-1

Git Clone URL: https://aur.archlinux.org/cooklang-chef.git (read-only, click to copy)
Package Base: cooklang-chef
Description: A CLI to manage cooklang recipes
Upstream URL: https://github.com/Zheoni/cooklang-chef
Licenses: MIT
Submitter: kirasok
Maintainer: kirasok
Last Packager: kirasok
Votes: 3
Popularity: 0.004500
First Submitted: 2023-07-13 03:06 (UTC)
Last Updated: 2025-01-30 03:54 (UTC)

Dependencies (1)

Required by (0)

Sources (2)

Latest Comments

LunarEclipse commented on 2025-02-12 13:39 (UTC)

Getting a build error

Okay this is an issue with generating completions because it apparently loads the ~/.config/cooklang-chef/default-config.toml generated by a previous version and breaks.

IDK if you can set the config location for that one but if that's possible you should set it to like /dev/null so the packagebuilds don't break over user config imo.

I'm really angry now about upstream making sudden breaking changes like this...

LunarEclipse commented on 2025-02-11 23:34 (UTC) (edited on 2025-02-12 13:25 (UTC) by LunarEclipse)

Getting a build error (this is after compilation so perhaps an issue generating completions?):

Error: TOML parse error at line 6, column 1
  |
6 | [extensions]
  | ^^^^^^^^^^^^
Unknown extension name

kirasok commented on 2025-02-03 13:45 (UTC)

Actually, it wasn't an accident. But I should've made a separate commit for .gitignore

CosmicHorror commented on 2025-01-06 06:15 (UTC)

It looks like the most recent update accidentally committed a .gitignore file as well

CosmicHorror commented on 2024-05-27 23:14 (UTC) (edited on 2024-05-27 23:20 (UTC) by CosmicHorror)

Thanks for the package! I'd like to recommend also installing shell completions if you wouldn't mind. The following patch handles installing for the big three shells in their expected locations

diff --git a/cooklang-chef/PKGBUILD b/cooklang-chef/PKGBUILD
index efb73f1..f2c0bc9 100644
--- a/cooklang-chef/PKGBUILD
+++ b/cooklang-chef/PKGBUILD
@@ -23,6 +23,10 @@ build() {
    export RUSTUP_TOOLCHAIN=stable
    export CARGO_TARGET_DIR=target
    cargo build --frozen --release --all-features
+
+   target/release/chef generate-completions bash > chef.bash
+   target/release/chef generate-completions fish > chef.fish
+   target/release/chef generate-completions zsh > chef.zsh
 }

 check() {
@@ -39,4 +43,8 @@ package() {
        -executable \
        -type f \
        -exec install -Dm0755 -t "$pkgdir/usr/bin/" {} +
+
+        install -Dm644 chef.bash "$pkgdir/usr/share/bash-completion/completions/chef"
+        install -Dm644 chef.fish "$pkgdir/usr/share/fish/vendor_completions.d/chef.fish"
+        install -Dm644 chef.zsh "$pkgdir/usr/share/zsh/site-functions/_chef"
 }