Skip to content

Commit 88c7dfb

Browse files
Update compilers (0.15.11, 0.15.12) (#664)
1 parent 6a803c3 commit 88c7dfb

File tree

7 files changed

+26
-23
lines changed

7 files changed

+26
-23
lines changed

app/test/App/API.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ spec = do
105105
-- the fixtures directory.
106106
enterCleanEnv :: FilePath -> Aff PipelineEnv
107107
enterCleanEnv workdir = do
108-
Env.loadEnvFile (Path.concat [ "..", ".env.example" ])
108+
Env.loadEnvFile ".env.example"
109109

110110
-- FIXME: The publish pipeline probably shouldn't require this. But...the
111111
-- publish pipeline requires that there be a 'types' directory containing
112112
-- dhall types for the registry in the current working directory.
113-
FS.Extra.copy { from: Path.concat [ "..", "types" ], to: Path.concat [ workdir, "types" ], preserveTimestamps: true }
113+
FS.Extra.copy { from: "types", to: Path.concat [ workdir, "types" ], preserveTimestamps: true }
114114

115115
testFixtures <- liftAff Tmp.mkTmpDir
116-
let copyFixture path = FS.Extra.copy { from: Path.concat [ "fixtures", path ], to: Path.concat [ testFixtures, path ], preserveTimestamps: true }
116+
let copyFixture path = FS.Extra.copy { from: Path.concat [ "app", "fixtures", path ], to: Path.concat [ testFixtures, path ], preserveTimestamps: true }
117117

118118
-- Set up a clean fixtures environment.
119119
liftAff do

app/test/App/CLI/Licensee.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Test.Spec as Spec
1010

1111
spec :: Spec.Spec Unit
1212
spec = do
13-
let fixtures = Path.concat [ "fixtures", "manifest-files", "halogen-hooks" ]
13+
let fixtures = Path.concat [ "app", "fixtures", "manifest-files", "halogen-hooks" ]
1414

1515
Spec.it "Detects from directory" do
1616
detected <- Licensee.detect fixtures
@@ -62,7 +62,7 @@ readFiles = do
6262
pure { license, packageJson, spagoDhall, bowerJson }
6363

6464
fixtureFile :: FilePath -> FilePath
65-
fixtureFile file = Path.concat [ "fixtures", "manifest-files", "halogen-hooks", file ]
65+
fixtureFile file = Path.concat [ "app", "fixtures", "manifest-files", "halogen-hooks", file ]
6666

6767
readLicense :: Aff String
6868
readLicense = FS.Aff.readTextFile UTF8 $ fixtureFile "LICENSE"

app/test/App/CLI/PursVersions.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ knownCompilers = map (unsafeFromRight <<< Version.parse)
4141
, "0.15.8"
4242
, "0.15.9"
4343
, "0.15.10"
44+
, "0.15.11"
45+
, "0.15.12"
4446
]
4547

4648
spec :: Spec.Spec Unit

app/test/App/GitHubIssue.purs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Registry.App.Prelude
77
import Data.Argonaut.Parser as Argonaut.Parser
88
import Data.Codec.Argonaut as CA
99
import Data.Map as Map
10+
import Node.Path as Path
1011
import Registry.App.GitHubIssue as GitHubIssue
1112
import Registry.Foreign.Octokit (IssueNumber(..))
1213
import Registry.Operation (PackageOperation(..), PackageSetOperation(..))
@@ -35,7 +36,7 @@ decodeEventsToOps = do
3536
, location: Nothing
3637
}
3738

38-
res <- GitHubIssue.readOperation "fixtures/update_issue_comment.json"
39+
res <- GitHubIssue.readOperation $ Path.concat [ "app", "fixtures", "update_issue_comment.json" ]
3940
res `Assert.shouldEqual` GitHubIssue.DecodedOperation issueNumber username (Right operation)
4041

4142
Spec.it "decodes an Addition operation" do
@@ -50,7 +51,7 @@ decodeEventsToOps = do
5051
, resolutions: Just $ Map.fromFoldable [ Utils.unsafePackageName "prelude" /\ Utils.unsafeVersion "1.0.0" ]
5152
}
5253

53-
res <- GitHubIssue.readOperation "fixtures/addition_issue_created.json"
54+
res <- GitHubIssue.readOperation $ Path.concat [ "app", "fixtures", "addition_issue_created.json" ]
5455
res `Assert.shouldEqual` GitHubIssue.DecodedOperation issueNumber username (Right operation)
5556

5657
Spec.it "decodes a Package Set Update operation" do
@@ -65,7 +66,7 @@ decodeEventsToOps = do
6566
]
6667
}
6768

68-
res <- GitHubIssue.readOperation "fixtures/package-set-update_issue_created.json"
69+
res <- GitHubIssue.readOperation $ Path.concat [ "app", "fixtures", "package-set-update_issue_created.json" ]
6970
res `Assert.shouldEqual` GitHubIssue.DecodedOperation issueNumber username (Left operation)
7071

7172
Spec.it "decodes lenient JSON" do

flake.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/test/Registry/Manifest.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Test.Spec as Spec
1515
spec :: Spec Unit
1616
spec = do
1717
Spec.it "Round-trips manifest fixtures" do
18-
let manifestFixturesPath = Path.concat [ "fixtures", "manifests" ]
18+
let manifestFixturesPath = Path.concat [ "lib", "fixtures", "manifests" ]
1919
fixturePaths <- FS.Aff.readdir manifestFixturesPath
2020
fixtures <- for fixturePaths \path -> do
2121
rawManifest <- FS.Aff.readTextFile UTF8 $ Path.concat [ manifestFixturesPath, path ]

lib/test/Registry/Sha256.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ hooksSpagoHash :: Sha256.Sha256
4747
hooksSpagoHash = Utils.fromRight "Failed to parse Sha256" $ Sha256.parse "sha256-fN9RUAzN21ZY4Y0UwqUSxwUPVz1g7/pcqoDvbJZoT04="
4848

4949
hooksSpago :: FilePath
50-
hooksSpago = Path.concat [ "fixtures", "packages", "halogen-hooks-0.5.0", "spago.dhall" ]
50+
hooksSpago = Path.concat [ "lib", "fixtures", "packages", "halogen-hooks-0.5.0", "spago.dhall" ]
5151

5252
-- Test hash produced by `openssl`:
5353
-- openssl dgst -sha256 -binary < fixtures/packages/halogen-hooks-0.5.0/LICENSE | openssl base64 -A
5454
hooksLicenseHash :: Sha256.Sha256
5555
hooksLicenseHash = Utils.fromRight "Failed to parse Sha256" $ Sha256.parse "sha256-wOzNcCq20TAL/LMT1lYIiaoEIFGDBw+yp14bj7qK9v4="
5656

5757
hooksLicense :: FilePath
58-
hooksLicense = Path.concat [ "fixtures", "packages", "halogen-hooks-0.5.0", "LICENSE" ]
58+
hooksLicense = Path.concat [ "lib", "fixtures", "packages", "halogen-hooks-0.5.0", "LICENSE" ]
5959

6060
sha256Nix :: FilePath -> ExceptT String Aff Sha256.Sha256
6161
sha256Nix path = ExceptT do

0 commit comments

Comments
 (0)