Package Details: hadolint 2.12.0-1

Git Clone URL: https://aur.archlinux.org/hadolint.git (read-only, click to copy)
Package Base: hadolint
Description: Dockerfile linter, validate inline bash, written in Haskell
Upstream URL: https://github.com/hadolint/hadolint/
Licenses: GPL
Conflicts: hadolint-bin, hadolint-git
Submitter: m-pilia
Maintainer: None
Last Packager: m-pilia
Votes: 4
Popularity: 0.048699
First Submitted: 2019-01-18 19:17 (UTC)
Last Updated: 2022-11-12 14:54 (UTC)

Latest Comments

1 2 Next › Last »

Xalphor commented on 2024-11-11 14:55 (UTC)

For people like me who just want the hadolint binary and who have problems installing/building this package: You can simply use the hadolint-bin package.

Hope this helps some of you :)

furai commented on 2024-07-08 14:41 (UTC) (edited on 2024-07-08 14:47 (UTC) by furai)

Yeah, getting exactly the same issue. Can we get that fixed? I believe it's specifically stack issue and this package should be using cabal. I could try fixing it if m-pilla adds me as co-maintainer.

ModYokosuka commented on 2024-06-05 19:05 (UTC) (edited on 2024-06-05 19:07 (UTC) by ModYokosuka)

I am getting an error when trying to run this makepkg.


==> Starting build()...
Preparing to install GHC (tinfo6) to an isolated location.
This will not interfere with any system-level installation.
Already downloaded.
gcc: error: unrecognized command-line option '--target=x86_64-unknown-linux'
configure: error: Failed to determine machine word size. Does your toolchain actually work?
Received ExitFailure 1 when running
Raw command: /home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2.temp/ghc-9.0.2/configure --prefix=/home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2/
Run from: /home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2.temp/ghc-9.0.2/


Error: Error encountered while configuring GHC with
         /home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2.temp/ghc-9.0.2/configure --prefix=/home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2/
         run in /home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2.temp/ghc-9.0.2/

       The following directories may now contain files, but won't be used by stack:
         - /home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2.temp/
         - /home/dedrone/.stack/programs/x86_64-linux/ghc-tinfo6-9.0.2/

       For more information consider rerunning with --verbose flag

Configuring GHC ...
==> ERROR: A failure occurred in build().

carlosal1015 commented on 2022-09-16 17:51 (UTC)

I think that while the package is been built should not touch any directory from ~/.stack/ (user home). Maybe I am wrong.

m-pilia commented on 2022-03-20 17:28 (UTC)

Please stop flagging the package out of date before a new release is officially created.

m-pilia commented on 2021-05-03 10:50 (UTC)

@aminvakil: Your build of hadolint is going to crash if gmp is not installed, therefore you need to list it as a dependency. It's not optional, if you don't your PKGBUILD is malformed.

Your test is not running in a clean environment, as part of your pipeline you are installing a lot of unrelated packages in the container. Try to run the executable in a system where gmp is not installed and you will see the dynamic linker error.

aminvakil commented on 2021-05-03 10:24 (UTC)

@m-pilia: I've just checked on a simple Dockerfile in a clean environment, and it's ok.

hadolint --version
curl -OL https://raw.githubusercontent.com/aminvakil/docker-squid/master/Dockerfile
hadolint Dockerfile

You can see full log here: https://github.com/aminvakil/aur/runs/2491156170?check_suite_focus=true

m-pilia commented on 2021-05-03 07:18 (UTC)

@gamezelda: Thanks for the suggestion, I was already considering building this package with dynamic linking, but I would need to double-check if and what kind of runtime dependencies that would introduce, since hadolint depends on a bunch of other Haskell libraries.

@aminvakil: If you don't use static linking you need to fix the dependencies of your package, or the application will crash when installed on a clean system.

aminvakil commented on 2021-05-02 20:52 (UTC)

@gamezelda thanks to your comment, I've tested and updated hadolint-git aur package as well.

https://aur.archlinux.org/cgit/aur.git/commit/?h=hadolint-git&id=6c3a8fd02743b98de821ac3a78a60e45f37d8e8c

gamezelda commented on 2021-05-02 14:10 (UTC)

The libgmp-static build dependency can be replaced with a runtime gmp dependency if the package is built with:

stack build hadolint --flag hadolint:-static