Skip to content

Add suggestions about licenses in cabal file#3261

Merged
michaelpj merged 4 commits into
haskell:masterfrom
dyniec:cabal_licenses
Nov 25, 2022
Merged

Add suggestions about licenses in cabal file#3261
michaelpj merged 4 commits into
haskell:masterfrom
dyniec:cabal_licenses

Conversation

@dyniec

@dyniec dyniec commented Oct 7, 2022

Copy link
Copy Markdown
Collaborator

Depends very much on #2954

Old approach depends on error message from cabal. So it was only capable of suggetsions on input BSD2 and BSD3.
This approach uses license list from cabal-syntax package, but still depends on error message from cabal (though it extracts only original name, and uses that to find similar one in supported list)

@dyniec

dyniec commented Oct 8, 2022

Copy link
Copy Markdown
Collaborator Author

oops, I forgot to update docs for licenseErrorSuggestion

@fendor
fendor self-requested a review as a code owner November 21, 2022 17:14
Comment thread plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal/LicenseSuggest.hs Outdated
@michaelpj
michaelpj enabled auto-merge (squash) November 23, 2022 17:54
@fendor

fendor commented Nov 23, 2022

Copy link
Copy Markdown
Collaborator

Still lacks some redesign of the tests, will get to it, maybe next weekend.

@michaelpj
michaelpj disabled auto-merge November 23, 2022 22:39
@michaelpj

Copy link
Copy Markdown
Collaborator

Sorry, not clear if that means you want to merge it or not? Also should maybe have some feature doc?

@fendor

fendor commented Nov 24, 2022

Copy link
Copy Markdown
Collaborator

CI is red, it can't be merged outright, no? And the CI is red because the test-suite fails because it suggests more than previously expected.

@michaelpj

Copy link
Copy Markdown
Collaborator

Ah I see, I'll let you deal with it then :)

@fendor
fendor requested a review from michaelpj November 24, 2022 13:49
@fendor

fendor commented Nov 24, 2022

Copy link
Copy Markdown
Collaborator

CI is probably green now, ready for final review, I think.

@fendor
fendor requested a review from pepeiborra as a code owner November 24, 2022 13:49
Comment thread plugins/hls-cabal-plugin/test/Main.hs Outdated
Comment thread plugins/hls-cabal-plugin/hls-cabal-plugin.cabal Outdated
Comment thread plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal/LicenseSuggest.hs Outdated
@michaelpj
michaelpj merged commit d7690c5 into haskell:master Nov 25, 2022
@dyniec
dyniec deleted the cabal_licenses branch August 25, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants