Skip to content

install-includes not working as expected #11186

Description

@zlonast

Describe the bug
install-includes does not accept local path when installing to tar.gz

To Reproduce
Steps to reproduce the behavior:

extra-source-files: cbits/clib.h

executable include-dirs-example
    main-is:          Main.hs
    build-depends:    base
    hs-source-dirs:   app
    include-dirs:     cbits
    c-sources:        cbits/clib.c
    -- install-includes: cbits/clib.h
    cc-options:       -D__TESTOPT_C__=11
    default-language: Haskell2010

or change the directory to an absolute path and it will work

-- extra-source-files: cbits/clib.h

executable include-dirs-example
    main-is:          Main.hs
    build-depends:    base
    hs-source-dirs:   app
    include-dirs:     /Users/user/haskell/include-dirs-example/cbits
    c-sources:        cbits/clib.c
    install-includes: cbits/clib.h
    cc-options:       -D__TESTOPT_C__=11
    default-language: Haskell2010
$ cabal install

Expected behavior
install-includes should accept a local path as expected

System information

  • Operating system: mac os
  • cabal 3.16.0.0
  • ghc 9.12.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions