Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Spago/Build.hs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ build buildOpts@BuildOptions{..} maybePostBuild = do

case NonEmpty.nonEmpty (psMismatches <> jsMismatches) of
Nothing -> pure ()
Just mismatches -> logInfo $ display $ Messages.globsDoNotMatchWhenWatching $ NonEmpty.nub $ Text.pack <$> mismatches
Just mismatches -> logWarn $ display $ Messages.globsDoNotMatchWhenWatching $ NonEmpty.nub $ Text.pack <$> mismatches

absolutePSGlobs <- traverse makeAbsolute psMatches
absoluteJSGlobs <- traverse makeAbsolute jsMatches
Expand Down
2 changes: 1 addition & 1 deletion src/Spago/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ makeConfig force comments = do
-- first, read the psc-package file content
content <- readTextFile PscPackage.configPath
case eitherDecodeStrict $ Text.encodeUtf8 content of
Left err -> logInfo $ display $ Messages.failedToReadPscFile err
Left err -> logWarn $ display $ Messages.failedToReadPscFile err
Right pscConfig -> do
logInfo "Found a \"psc-package.json\" file, migrating to a new Spago config.."
-- try to update the dependencies (will fail if not found in package set)
Expand Down
2 changes: 1 addition & 1 deletion src/Spago/FetchPackage.hs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fetchPackage metadata pair@(packageName'@PackageName{..}, Package{ location = Re
assertDirectory resultDir2
cptree resultDir resultDir2
catch (mv resultDir2 packageGlobalCacheDir) $ \(err :: SomeException) ->
logInfo $ display $ Messages.failedToCopyToGlobalCache err
logWarn $ display $ Messages.failedToCopyToGlobalCache err
mv resultDir packageLocalCacheDir

-- * if not, run a series of git commands to get the code, and move it to local cache
Expand Down
15 changes: 0 additions & 15 deletions src/Spago/Messages.hs
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@ cannotFindPackages = makeMessage
, "otherwise you might want to run `spago init` to initialize a new package set file."
]

cannotFindPackagesButItsFine :: Text
cannotFindPackagesButItsFine = makeMessage
[ "WARNING: did not find a " <> surroundQuote "packages.dhall" <> " in your current location, skipping compiler version check"
]


foundExistingProject :: Text -> Text
foundExistingProject pathText = makeMessage
[ "Found a " <> surroundQuote pathText <> " file, skipping copy. Run `spago init --force` if you wish to overwrite it."
Expand Down Expand Up @@ -165,15 +159,6 @@ failedToCopyToGlobalCache err = makeMessage
, tshow err
]

packageSetVersionWarning :: Text
packageSetVersionWarning = makeMessage
[ "WARNING: the package-set version you're on doesn't check if the version of the"
, "PureScript compiler installed on your system is compatible."
, "If your build fails you might want to upgrade your set by running this command:"
, "`spago upgrade-set`"
, ""
]

pursVersionMismatch :: Text -> Text -> Text
pursVersionMismatch currentVersion minVersion = makeMessage
[ "Oh noes! It looks like the PureScript version installed on your system is not compatible with the package-set you're using."
Expand Down