Skip to content

Commit 606f041

Browse files
Update version.json file path for v2 schema (#28)
* Update file path * Generate script files * Update versions file
1 parent 5562025 commit 606f041

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/update.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

src/Setup/Data/VersionFiles.purs

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ derive instance Newtype V2FileSchema _
5959

6060
version2 :: V2FileSchema
6161
version2 = V2FileSchema
62-
{ fileUrl: "https://raw.githubusercontent.com/purescript-contrib/setup-purescript/main/dist/versions" <> vSuffix <> ".json"
63-
, localFile: "./dist/version" <> vSuffix <> ".json"
62+
{ fileUrl: "https://raw.githubusercontent.com/purescript-contrib/setup-purescript/main" <> filePath
63+
, localFile: "." <> filePath
6464
, encode: foldlWithIndex encodeFoldFn jsonEmptyObject
6565
, decode: \j -> do
6666
obj :: Object Json <- lmap JsonCodecError $ decodeJson j
@@ -75,7 +75,7 @@ version2 = V2FileSchema
7575
pure $ Map.fromFoldable keyVals
7676
}
7777
where
78-
vSuffix = "-v2"
78+
filePath = "/dist/versions-v2.json"
7979
encodeFoldFn tool acc { latest, unstable }
8080
| Just toolStr <- toolToMbString tool = do
8181
let rec = { latest: Version.showVersion latest, unstable: Version.showVersion unstable }

0 commit comments

Comments
 (0)