-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Clean cabal project #2097
Clean cabal project #2097
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is shake-bench
blocking the Hackage release? Please explain the issue and let's try to find a solution that doesn't introduce a new cabal-foo.project
file.
cabal-benchmark.project
Outdated
allow-newer: | ||
diagrams-contrib:base, | ||
diagrams-contrib:lens, | ||
diagrams-contrib:random, | ||
diagrams-core:base, | ||
diagrams-core:lens, | ||
diagrams-lib:base, | ||
diagrams-lib:lens, | ||
diagrams-postscript:base, | ||
diagrams-postscript:lens, | ||
diagrams-svg:base, | ||
diagrams-svg:lens, | ||
dual-tree:base, | ||
svg-builder:base |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these still needed though? The upstream issue was fixed recently: diagrams/diagrams-core#112
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will try it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without the allow-newer for diagrams-core i got
PS D:\hls> cabal bench --project-file .\cabal-benchmark.project
Resolving dependencies...
cabal-3.4.0.0.exe: Could not resolve dependencies:
[__0] trying: ghc-api-compat-8.6.1 (user goal)
[__1] trying: base-4.14.2.0/installed-4.14.2.0 (dependency of ghc-api-compat)
[__2] trying: shake-bench-0.1.0.0 (user goal)
[__3] trying: diagrams-svg-1.4.3 (dependency of shake-bench)
[__4] trying: diagrams-core-1.5.0 (dependency of diagrams-svg)
[__5] next goal: Chart-diagrams (dependency of shake-bench)
[__5] rejecting: Chart-diagrams-1.9.3 (conflict: diagrams-core==1.5.0,
Chart-diagrams => diagrams-core>=1.3 && <1.5)
[__5] skipping: Chart-diagrams-1.9.2, Chart-diagrams-1.9.1,
Chart-diagrams-1.9, Chart-diagrams-1.8.3, Chart-diagrams-1.8.2,
Chart-diagrams-1.8.1, Chart-diagrams-1.8, Chart-diagrams-1.7.1,
Chart-diagrams-1.7, Chart-diagrams-1.6, Chart-diagrams-1.5.4,
Chart-diagrams-1.5.1, Chart-diagrams-1.5, Chart-diagrams-1.4,
Chart-diagrams-1.3.3, Chart-diagrams-1.3.2, Chart-diagrams-1.3.1,
Chart-diagrams-1.3, Chart-diagrams-1.2.4, Chart-diagrams-1.2.3,
Chart-diagrams-1.2.2, Chart-diagrams-1.2, Chart-diagrams-1.1,
Chart-diagrams-1.0 (has the same characteristics that caused the previous
version to fail: excludes 'diagrams-core' version 1.5.0)
[__5] fail (backjumping, conflict set: Chart-diagrams, diagrams-core,
shake-bench)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: diagrams-core, base, Chart-diagrams,
shake-bench, diagrams-svg, ghc-api-compat
Try running with --minimize-conflict-set to improve the error message.
After trying several combinations i only get it to build enabling all of them maybe a more detailed analysis could make let us know the way to remove them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've got to remove some other entries from allow-newer
It is not blocking the release directly but disturbing it with bench only releated allow-newer and a submodule, which is being taken in account for all builds even if they are not running or building benchmarks. |
@pepeiborra ok, i've unified both |
@Mergifyio backport 1.3.0-hackage |
Command
|
The allow-newer for all the diagrams ecosystem should not be needed anymore, did you check? |
The allow-newer might be superfluous, let's find out. To avoid building shake-bench, just be more precise and list the targets that you wish to build: "cabal build haskell-language-server"
Not sure what you mean. Care to elaborate,
What workarounds are you referring to? |
yeah, see #2097 (comment) |
in my tests, no matter if you set a specific target or use |
due to allow-never you can't run the benchmarks downloading the package(s) from hackage |
for me allow-newer and remote source repo packages in cabal.project are workarounds to be removed asap |
Understood. I have opened #2101 to remove as many as possible, there are still 2 left. |
7e7fbf3
to
19bb487
Compare
* Remove superflous things * Set index-state * Add ghc-api-compat and remove shake-bench * Correct comment about ghc-api-compat * Add specific project file for benchs * Use specific project file for benchmarks * Ensure we use lsp-1.3.0.1 * Use lsp-types-1.3.0.1 for stack * Use lsp-types-1.3.0.1 for default stack * Remove some more allow-newer * Use one cabal.project Co-authored-by: Pepe Iborra <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 57ffd74) # Conflicts: # cabal.project
Command
|
* Clean cabal project (#2097) * Remove superflous things * Set index-state * Add ghc-api-compat and remove shake-bench * Correct comment about ghc-api-compat * Add specific project file for benchs * Use specific project file for benchmarks * Ensure we use lsp-1.3.0.1 * Use lsp-types-1.3.0.1 for stack * Use lsp-types-1.3.0.1 for default stack * Remove some more allow-newer * Use one cabal.project Co-authored-by: Pepe Iborra <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 57ffd74) # Conflicts: # cabal.project * Resolve conflicts Co-authored-by: Javier Neira <[email protected]>
* Remove superflous things * Set index-state * Add ghc-api-compat and remove shake-bench * Correct comment about ghc-api-compat * Add specific project file for benchs * Use specific project file for benchmarks * Ensure we use lsp-1.3.0.1 * Use lsp-types-1.3.0.1 for stack * Use lsp-types-1.3.0.1 for default stack * Remove some more allow-newer * Use one cabal.project Co-authored-by: Pepe Iborra <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 57ffd74)
shake-bench
submodule and all theallow-newer
shake-bench
, which now is being built, with all dependencies in all builds (with or without benchs)The idea is backport thia to 1.3.0-hackage to help the hackage release (#1990)