Package Details: sworkstyle 1.2.5-1

Git Clone URL: https://aur.archlinux.org/sworkstyle.git (read-only, click to copy)
Package Base: sworkstyle
Description: Swayest Workstyle - This tool will rename workspaces to the icons configured. Mainly meant for Sway WM
Upstream URL: https://github.com/Lyr-7D1h/swayest_workstyle
Licenses: MIT
Conflicts: sworkstyle-git
Submitter: lyr
Maintainer: lyr (Y7n05h)
Last Packager: lyr
Votes: 4
Popularity: 0.77
First Submitted: 2021-04-04 19:23 (UTC)
Last Updated: 2022-08-07 16:42 (UTC)

Latest Comments

Jamps commented on 2022-08-03 19:56 (UTC) (edited on 2022-08-03 19:56 (UTC) by Jamps)

For the error : error: there is no argument named VERSION If you use rustup, rustup update fixed it for me

Y7n05h commented on 2022-08-03 14:01 (UTC)

Hi @normalname012, I can't reproduce your problem on my computer. This problem may be due to your build environment. You can try using devtools to create a clean build environment. You just need to install devtools and execute extra-x86_64-build. Feel free to add a comment if this doesn't solve your problem.

References: https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot

normalname012 commented on 2022-08-03 08:46 (UTC) (edited on 2022-08-03 08:49 (UTC) by normalname012)

I seem to have some error compiling it, I am getting this error

   Compiling swayipc-async v2.0.0
   Compiling sworkstyle v1.2.4 (/home/sepia/.cache/yay/sworkstyle/src/swayest_workstyle-1.2.4)
error: there is no argument named `VERSION`
  --> src/args.rs:22:45
   |
22 |                         "Swayest Workstyle v{VERSION}
   |                                             ^^^^^^^^^
   |
   = help: if you intended to capture `VERSION` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes

error: there is no argument named `VERSION`
  --> src/args.rs:46:31
   |
46 |                     println!("{VERSION}");
   |                               ^^^^^^^^^
   |
   = help: if you intended to capture `VERSION` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes

error: there is no argument named `sworkstyle_config_path`
  --> src/config.rs:50:29
   |
50 |             "Could not open {sworkstyle_config_path:?}: {e}"
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: if you intended to capture `sworkstyle_config_path` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes

error: there is no argument named `e`
  --> src/config.rs:50:57
   |
50 |             "Could not open {sworkstyle_config_path:?}: {e}"
   |                                                         ^^^
   |
   = help: if you intended to capture `e` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes

error: there is no argument named `e`
  --> src/config.rs:67:50
   |
67 |                 error!("Failed to create config: {e}");
   |                                                  ^^^
   |
   = help: if you intended to capture `e` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes

error: there is no argument named `e`
   --> src/main.rs:151:52
    |
151 |                 warn!("Connection broken, exiting: {e}");
    |                                                    ^^^
    |
    = help: if you intended to capture `e` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes

error: could not compile `sworkstyle` due to 6 previous errors
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: sworkstyle

How to solve this?

Anomalocaris commented on 2022-07-31 15:55 (UTC)

@lyr Thank you for updating the checksums, but you should make sure to increment the pkgrel by 1 whenever you update a PKGBUILD without updating the version number. This is so that the new PKGBUILD gets retrieved automatically without needing a clean build. Also for future reference, the pkgrel should be reset to 1 whenever the version number gets incremented, but don't worry about that until the next version gets released.

lyr commented on 2022-07-26 07:17 (UTC)

@ljyip ahh sorry always for get to update the sha. Should be fine now with a clean build.

ljyip commented on 2022-07-26 02:03 (UTC) (edited on 2022-07-27 04:38 (UTC) by ljyip)

==> ERROR: One or more files did not pass the validity check!
error: failed to download sources for 'sworkstyle-1.2.4-2': 
error: packages failed to build: sworkstyle-1.2.4-2

I see that 3a8c67790289 only changes the version numbers but not the checksums, thus always giving the above error. It would be great if you updated them, thanks!

Edit: It got fixed thanks to ^, TYSM!

Y7n05h commented on 2021-12-27 16:27 (UTC)

Thank you for your trust. I have completed the update of the package.

lyr commented on 2021-12-27 10:50 (UTC)

@Y7n05h I recently switched from arch to nix so it would be awesome if you could help maintain this aur package. I'm planning on adding a github action to automatically up the version with a new release.