Package Details: bashate 2.1.1-1

Git Clone URL: https://aur.archlinux.org/bashate.git (read-only, click to copy)
Package Base: bashate
Description: Code style enforcement for bash programs
Upstream URL: https://github.com/openstack/bashate
Licenses: Apache
Submitter: christoph.gysin
Maintainer: christoph.gysin
Last Packager: christoph.gysin
Votes: 5
Popularity: 0.000000
First Submitted: 2015-06-25 08:07 (UTC)
Last Updated: 2022-12-10 07:17 (UTC)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

Sathors commented on 2021-10-11 20:04 (UTC)

Perfect @christoph.gysin, I've just tried it and everything is working great now. It also installs fine using yay. Thanks for the really fast fix.

christoph.gysin commented on 2021-10-11 19:53 (UTC)

@Sathors Thanks for the update. The issue seems to be triggered if the build step is called in a directory that is not part of a git repository. Fixed in 2.1.0-2.

Sathors commented on 2021-10-11 19:19 (UTC) (edited on 2021-10-11 19:19 (UTC) by Sathors)

@christoph.gysin I have updated my previous comment to paste the error there. I was missing the double spaces at the end of each line to preserve the newlines.

To build it, I download the snapshot of the package (https://aur.archlinux.org/cgit/aur.git/snapshot/bashate.tar.gz), I extract the .tar.gz archive, I run makepkg --syncdeps --rmdeps --install --clean in the root of the directory (which contains the PKGBUILD) and then I stumble upon the error.

christoph.gysin commented on 2021-10-11 17:53 (UTC)

@Sathors Please check how to properly format your comment with markdown. Then provide detailed steps to reproduce the problem. It builds fine for me.

Sathors commented on 2021-10-11 17:42 (UTC) (edited on 2021-10-11 19:14 (UTC) by Sathors)

With this version I have the same problem I had with the previous version, namely a "Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name bashate was given, but was not able to be found."

==> Starting build()...  
ERROR:root:Error parsing  
Traceback (most recent call last):  
  File "/usr/lib/python3.9/site-packages/pbr/core.py", line 96, in pbr  
    attrs = util.cfg_to_args(path, dist.script_args)  
  File "/usr/lib/python3.9/site-packages/pbr/util.py", line 274, in cfg_to_args  
    pbr.hooks.setup_hook(config)  
  File "/usr/lib/python3.9/site-packages/pbr/hooks/__init__.py", line 25, in setup_hook  
    metadata_config.run()  
  File "/usr/lib/python3.9/site-packages/pbr/hooks/base.py", line 27, in run  
    self.hook()  
  File "/usr/lib/python3.9/site-packages/pbr/hooks/metadata.py", line 25, in hook  
    self.config['version'] = packaging.get_version(  
  File "/usr/lib/python3.9/site-packages/pbr/packaging.py", line 874, in get_version  
    raise Exception("Versioning for this project requires either an sdist"  
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name bashate was given, but was not able to be found.  
error in setup command: Error parsing /tmp/makepkg/bashate/src/bashate-2.1.0/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name bashate was given, but was not able to be found.  
==> ERROR: A failure occurred in build().  
    Aborting...  
error making: bashate  

Thanks

christoph.gysin commented on 2017-03-25 09:46 (UTC)

@dracorp Fixed makedepends, thanks!

dracorp commented on 2017-03-15 15:21 (UTC)

@christoph.gysin There is no setuptools instead python{,2}-setuptools. Could you fix makedepend?

christoph.gysin commented on 2016-08-28 15:39 (UTC)

@kseistrup: Please try to reproduce on a clean chroot: https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot

kseistrup commented on 2016-08-28 15:08 (UTC) (edited on 2016-08-28 15:11 (UTC) by kseistrup)

@chrstoph.gysin that's weird: $ cd /tmp $ git clone https://aur.archlinux.org/bashate.git $ cd bashate $ makepkg -s Plase see https://ghostbin.com/paste/ojza7 — I can't seem to paste the errors here.

christoph.gysin commented on 2016-08-28 14:41 (UTC)

@kseistrup: Can't reproduce that on a clean chroot.