Skip to content

Commit

Permalink
Merge pull request #6677 from m-renaud/m-renaud-init-spdx-none
Browse files Browse the repository at this point in the history
Default to SPDX.NONE license in cabal init interactive mode.
  • Loading branch information
m-renaud authored Apr 9, 2020
2 parents a09afa7 + a603b35 commit 30da456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cabal-install/Distribution/Client/Init/Command.hs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ getVersion flags = do
getLicense :: InitFlags -> IO InitFlags
getLicense flags = do
elic <- return (fmap Right $ flagToMaybe $ license flags)
?>> maybePrompt flags (promptList "Please choose a license" listedLicenses Nothing prettyShow True)
?>> maybePrompt flags (promptList "Please choose a license" listedLicenses (Just SPDX.NONE) prettyShow True)

case elic of
Nothing -> return flags { license = NoFlag }
Expand Down

0 comments on commit 30da456

Please sign in to comment.