Skip to content

Wrong condition for passing --working-dir flag #9940

Closed

Description

@Bodigrim

flags_3_11_0 =
flags_latest
{ setupWorkingDir = NoFlag
}
-- Cabal < 3.11 does not support the --working-dir flag.

#9718 was not backported to 3.12 branch, so the condition should be < 3.13.

CC @sheaf

Activity

  1. andreasabel commented on Apr 27, 2024

    @andreasabel
    Member

    @Bodigrim Is this a symptom of the bug? (trying to build ghc-paths with latest Cabal and GHC, using today's master of cabal-install):

    ghc-paths$ cabal-master build -w ghc-9.10.0 -c 'Cabal >= 3.12'
    
    Build profile: -w ghc-9.10.0.20240413 -O1
    In order, the following will be built (use -v for more details):
     - ghc-paths-0.1.0.12 (lib:ghc-paths) (cannot read state cache)
    unrecognized 'configure' option `--working-dir=/.../ghc-paths/.'
    Error: [Cabal-7125]
    Failed to build ghc-paths-0.1.0.12. The failure occurred during the configure step.
    

    Update: shows also with older GHCs.

  2. Bodigrim commented on Apr 27, 2024

    @Bodigrim
    CollaboratorAuthor

    Yes.

  3. added
    regression on master
    on Apr 27, 2024
  4. Mikolaj commented on Apr 29, 2024

    @Mikolaj
    Member

    Thank you for the report. So it seems 3.12.1.0 will not be a cabal-install-only release...

  5. self-assigned this
    on Apr 29, 2024
  6. added a commit that references this issue on Apr 29, 2024
    397dcbb
  7. 12 remaining items

  8. ulysses4ever commented on May 1, 2024

    @ulysses4ever
    Collaborator

    I retract my previous comment, as it does seem like a master version of cabal-install is required to trigger it.

  9. Mikolaj commented on May 2, 2024

    @Mikolaj
    Member

    Nobody corrected me, so I will assume this does not affect cabal-install 3.12 and so we don't backport the fix and I can announce a pre-release without pointing this out as a known bug. Shall we close [edit: as soon as the fix lands on master branch in 2 days]?

  10. sheaf commented on May 2, 2024

    @sheaf
    Collaborator

    Nobody corrected me, so I will assume this does not affect cabal-install 3.12 and so we don't backport the fix and I can announce a pre-release without pointing this out as a known bug. Shall we close [edit: as soon as the fix lands on master branch in 2 days]?

    Yes, I believe no backport is needed and we just need to merge the fix to master.

  11. added a commit that references this issue on May 2, 2024
    abd4ead
  12. added a commit that references this issue on May 3, 2024
    26642d8
  13. added a commit that references this issue on Jun 3, 2024
  14. added a commit that references this issue on Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

regression on mastertype: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions