Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test: nixosTests.hocker-fetchdocker #122263

Open
blaggacao opened this issue May 8, 2021 · 2 comments
Open

Failing test: nixosTests.hocker-fetchdocker #122263

blaggacao opened this issue May 8, 2021 · 2 comments
Assignees
Labels
0.kind: bug 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: testing Tooling for automated testing of packages and modules

Comments

@blaggacao
Copy link
Contributor

Describe the bug

$ nix-build -A nixosTests.hocker-fetchdocker
[ ... ]
error: builder for '/nix/store/5105fy3vml3nr4rfk80nsnhfxmilyc98-hocker-1.0.6.drv' failed with exit code 1
building '/nix/store/11z95axd5p1ah89lm1vb1078j0ppj64s-dbus-1.drv'...
[ ... ]
Logs
Building library for hocker-1.0.6..
[ 1 of 16] Compiling Data.Docker.Image.AesonHelpers ( src/Data/Docker/Image/AesonHelpers.hs, dist/build/Data/Docker/Image/AesonHelpers.o, dist/build/Data/Docker/Image/AesonHelpers.dyn_o )
[ 2 of 16] Compiling Hocker.Types.Exceptions ( src/Hocker/Types/Exceptions.hs, dist/build/Hocker/Types/Exceptions.o, dist/build/Hocker/Types/Exceptions.dyn_o )

src/Hocker/Types/Exceptions.hs:22:1: warning: [-Wunused-imports]
    The import of ‘Data.Semigroup’ is redundant
      except perhaps to import instances from ‘Data.Semigroup’
    To import instances alone, use: import Data.Semigroup()
   |
22 | import           Data.Semigroup     ((<>))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 3 of 16] Compiling Hocker.Types.Hash ( src/Hocker/Types/Hash.hs, dist/build/Hocker/Types/Hash.o, dist/build/Hocker/Types/Hash.dyn_o )

src/Hocker/Types/Hash.hs:34:8: error:
    • Couldn't match expected type ‘Maybe String
                                    -> Options.Parser (Hash.Digest Hash.SHA256)’
                  with actual type ‘Options.Parser (Hash.Digest Hash.SHA256)’
    • In the expression:
        (Options.option (Options.maybeReader (readSHA256 . C8.pack))
           $ (Options.metavar "SHA256"
                <>
                  Options.short 'l'
                    <>
                      Options.long "layer"
                        <> maybe mempty (Options.help . Data.Text.unpack) h))
      In an equation for ‘parseField’:
          parseField h _ _
            = (Options.option (Options.maybeReader (readSHA256 . C8.pack))
                 $ (Options.metavar "SHA256"
                      <>
                        Options.short 'l'
                          <>
                            Options.long "layer"
                              <> maybe mempty (Options.help . Data.Text.unpack) h))
      In the instance declaration for
        ‘ParseField (Hash.Digest Hash.SHA256)’
   |
34 |       (Options.option (Options.maybeReader (readSHA256 . C8.pack)) $
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
[ 4 of 16] Compiling Hocker.Types.ImageName ( src/Hocker/Types/ImageName.hs, dist/build/Hocker/Types/ImageName.o, dist/build/Hocker/Types/ImageName.dyn_o )

src/Hocker/Types/ImageName.hs:28:5: error:
    • Couldn't match expected type ‘Maybe String
                                    -> Options.Parser ImageName’
                  with actual type ‘Options.Parser ImageName’
    • Possible cause: ‘(<$>)’ is applied to too many arguments
      In the expression:
        ImageName
          <$>
            (Options.argument Options.str
               $ (Options.metavar "IMAGE-NAME"
                    <>
                      Options.help "Docker image name, e.g: 'debian' in debian:jessie"))
      In an equation for ‘parseField’:
          parseField _ _ _
            = ImageName
                <$>
                  (Options.argument Options.str
                     $ (Options.metavar "IMAGE-NAME"
                          <>
                            Options.help "Docker image name, e.g: 'debian' in debian:jessie"))
      In the instance declaration for ‘ParseField ImageName’
   |
28 |     ImageName <$>
   |     ^^^^^^^^^^^^^...
[ 5 of 16] Compiling Hocker.Types.ImageTag ( src/Hocker/Types/ImageTag.hs, dist/build/Hocker/Types/ImageTag.o, dist/build/Hocker/Types/ImageTag.dyn_o )

src/Hocker/Types/ImageTag.hs:28:5: error:
    • Couldn't match expected type ‘Maybe String
                                    -> Options.Parser ImageTag’
                  with actual type ‘Options.Parser ImageTag’
    • Possible cause: ‘(<$>)’ is applied to too many arguments
      In the expression:
        ImageTag
          <$>
            (Options.argument Options.str
               $ (Options.metavar "IMAGE-TAG"
                    <>
                      Options.help
                        "Docker image tag identifier, e.g: 'jessie' in debian:jessie"))
      In an equation for ‘parseField’:
          parseField _ _ _
            = ImageTag
                <$>
                  (Options.argument Options.str
                     $ (Options.metavar "IMAGE-TAG"
                          <>
                            Options.help
                              "Docker image tag identifier, e.g: 'jessie' in debian:jessie"))
      In the instance declaration for ‘ParseField ImageTag’
   |
28 |     ImageTag <$>
   |     ^^^^^^^^^^^^...
[ 6 of 16] Compiling Hocker.Types.URI ( src/Hocker/Types/URI.hs, dist/build/Hocker/Types/URI.o, dist/build/Hocker/Types/URI.dyn_o )

src/Hocker/Types/URI.hs:36:8: error:
    • Couldn't match expected type ‘Maybe String
                                    -> Options.Parser (URIRef Absolute)’
                  with actual type ‘Options.Parser (URIRef Absolute)’
    • In the expression:
        (option uriReader
           $ (Options.Applicative.Builder.metavar "URI"
                <>
                  foldMap (long . Text.unpack) n
                    <> foldMap short s <> foldMap (help . Text.unpack) h))
      In an equation for ‘parseField’:
          parseField h n s
            = (option uriReader
                 $ (Options.Applicative.Builder.metavar "URI"
                      <>
                        foldMap (long . Text.unpack) n
                          <> foldMap short s <> foldMap (help . Text.unpack) h))
      In the instance declaration for ‘ParseField (URIRef Absolute)’
   |
36 |       (Options.option uriReader $
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^...
[ 7 of 16] Compiling Network.Wreq.ErrorHandling ( src/Network/Wreq/ErrorHandling.hs, dist/build/Network/Wreq/ErrorHandling.o, dist/build/Network/Wreq/ErrorHandling.dyn_o )

src/Network/Wreq/ErrorHandling.hs:24:1: warning: [-Wunused-imports]
    The import of ‘Data.Semigroup’ is redundant
      except perhaps to import instances from ‘Data.Semigroup’
    To import instances alone, use: import Data.Semigroup()
   |
24 | import           Data.Semigroup            ((<>))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Additional context
Discovered in the context of: #122201

Metadata

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.8.0-7642-generic, Pop!_OS, 20.10`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20210308_1c0e3e4`
 - channels(blaggacao): `"nixpkgs-20.09.3454.60b18a066e8, home-manager-20.09"`
 - nixpkgs: `/home/blaggacao/.nix-defexpr/channels/nixpkgs`
 

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
- nixosTests.hocker-fetchdocker
# a list of nixos modules affected by the problem
module:
@veprbl veprbl added the 6.topic: testing Tooling for automated testing of packages and modules label May 9, 2021
@ixmatus
Copy link
Contributor

ixmatus commented May 9, 2021

Thanks, I will release a newer version of hocker to fix the compiler errors.

@stale
Copy link

stale bot commented Nov 9, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: testing Tooling for automated testing of packages and modules
Projects
None yet
Development

No branches or pull requests

3 participants