Skip to content

Warn when failing to symlink an exe in new-install - #5602

Merged
hvr merged 2 commits into
haskell:masterfrom
fgaz:new-install/warn-symlink
Oct 3, 2018
Merged

hvr merged 2 commits into
haskell:masterfrom
fgaz:new-install/warn-symlink

Conversation

@fgaz

@fgaz fgaz commented Oct 3, 2018

Copy link
Copy Markdown
Member

Please include the following checklist in your PR:

  • Patches conform to the coding conventions.
  • Any changes that could be relevant to users have been recorded in the changelog.
  • The documentation has been updated, if necessary.
  • If the change is docs-only, [ci skip] is used to avoid triggering the build bots.

Please also shortly describe how you tested your change. Bonus points for added tests!

@fgaz fgaz added the cabal-install: v2-build system Affecting v2-build and related commands that use v2-architecture (aka "nix local builds"). label Oct 3, 2018
@fgaz fgaz added this to the 2.4.0.1 milestone Oct 3, 2018
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Oct 3, 2018
"url":"pull/5602",
"account":"haskell",
"repo":"cabal",
"commit": "d743f50dce22cda8f57386ab24a76fb40ba57a71",
"tag":"linux-7.10.3"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Oct 3, 2018
"url":"pull/5602",
"account":"haskell",
"repo":"cabal",
"commit": "d743f50dce22cda8f57386ab24a76fb40ba57a71",
"tag":"linux-8.0.2"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Oct 3, 2018
"url":"pull/5602",
"account":"haskell",
"repo":"cabal",
"commit": "d743f50dce22cda8f57386ab24a76fb40ba57a71",
"tag":"linux-7.6.3"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Oct 3, 2018
"url":"pull/5602",
"account":"haskell",
"repo":"cabal",
"commit": "d743f50dce22cda8f57386ab24a76fb40ba57a71",
"tag":"linux-8.2.2"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Oct 3, 2018
"url":"pull/5602",
"account":"haskell",
"repo":"cabal",
"commit": "d743f50dce22cda8f57386ab24a76fb40ba57a71",
"tag":"linux-8.4.3"
}
Comment thread cabal-install/changelog Outdated

2.6.0.0 (current development version)
* New solver flag: '--reject-unconstrained-dependencies'. (#2568)
* 'new-install' now warns when failing to symlink an exe

@hvr hvr Oct 3, 2018 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: this is intended for a 2.4 point release; either 2.4.0.1 or 2.4.1.0

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I change 2.6 to 2.4.0.1? Or should I do that in the 2.4 branch?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe just drop changelog entry for the master branch; this reduces the conflict-potential during a cherry-pick to the 2.4 branch

haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Oct 3, 2018
"url":"pull/5602",
"account":"haskell",
"repo":"cabal",
"commit": "d743f50dce22cda8f57386ab24a76fb40ba57a71",
"tag":"linux-8.4.3-fdebug-expensive-assertions"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Oct 3, 2018
"url":"pull/5602",
"account":"haskell",
"repo":"cabal",
"commit": "d743f50dce22cda8f57386ab24a76fb40ba57a71",
"tag":"osx-7.8.4"
}
haskell-pushbot pushed a commit to haskell-pushbot/cabal-binaries that referenced this pull request Oct 3, 2018
"url":"pull/5602",
"account":"haskell",
"repo":"cabal",
"commit": "d743f50dce22cda8f57386ab24a76fb40ba57a71",
"tag":"osx-8.0.2"
}
fgaz added 2 commits October 3, 2018 22:28
Does not warn if the existing symlink already points to the correct location

Partial solution to haskell#5491
@fgaz
fgaz force-pushed the new-install/warn-symlink branch from d743f50 to 1379f54 Compare October 3, 2018 20:29
@hvr
hvr merged commit c10974d into haskell:master Oct 3, 2018
@hvr

hvr commented Oct 3, 2018 •

Copy link
Copy Markdown
Member

@fgaz please cherry-pick to the 2.4 branch & add a changelog entry there for the upcoming point rls

edit by @fgaz: done

@hvr

hvr commented Oct 3, 2018

Copy link
Copy Markdown
Member

PS: while testing the PR I noticed a subtle (but harmless) bug in the targetOkToOverwrite function which is triggered when your ${HOME}/.cabal folder is a symlink as then the canonicalizePath-based test gets a false negative.

@fgaz
fgaz deleted the new-install/warn-symlink branch October 4, 2018 08:31
@fgaz
fgaz restored the new-install/warn-symlink branch September 3, 2020 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cabal-install: v2-build system Affecting v2-build and related commands that use v2-architecture (aka "nix local builds").

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants