Skip to content

Commit

Permalink
Upgrade moc/base.
Browse files Browse the repository at this point in the history
  • Loading branch information
q-uint committed Dec 16, 2022
1 parent 3ee9fc4 commit 8f8bd42
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 19 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: aviate-labs/[email protected].2
- uses: actions/checkout@v3
- uses: aviate-labs/[email protected].3
with:
dfx-version: 0.8.1
install-moc: true
vessel-version: 0.6.2
- run: for i in test/*.mo ; do moc $(vessel sources) -r $i ; done
dfx-version: 0.12.1
vessel-version: 0.6.3
- run: |
make check
make test
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.PHONY: check test
check:
find src -type f -name '*.mo' -print0 | xargs -0 $(shell vessel bin)/moc $(shell vessel sources 2>/dev/null) --check
test:
find test -type f -name '*.mo' -print0 | xargs -0 $(shell vessel bin)/moc $(shell vessel sources 2>/dev/null) -r
8 changes: 4 additions & 4 deletions package-set.dhall
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
let upstream = https://github.com/aviate-labs/package-set/releases/download/v0.1.1/package-set.dhall sha256:f1a3f0af31ad92eca20cc829f1fb32ed54e9c6a49257f43c3831732b37bf7559
let base = https://github.com/internet-computer/base-package-set/releases/download/moc-0.7.4/package-set.dhall sha256:3a20693fc597b96a8c7cf8645fda7a3534d13e5fbda28c00d01f0b7641efe494
let Package = { name : Text, version : Text, repo : Text, dependencies : List Text }

let additions = [
{ name = "array"
, version = "v0.2.1"
, repo = "https://github.com/aviate-labs/array.mo"
, version = "v0.1.1"
, dependencies = [ "base" ]
, dependencies = [ "base-0.7.3" ] : List Text
}
] : List Package

in upstream # additions
in base # additions
10 changes: 5 additions & 5 deletions src/CRC32.mo
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Array "mo:base/Array";
import Array "mo:base-0.7.3/Array";
import Array_ "mo:array/Array";
import Hash "mo:base/Hash";
import Iter "mo:base/Iter";
import Nat8 "mo:base/Nat8";
import Nat32 "mo:base/Nat32";
import Hash "mo:base-0.7.3/Hash";
import Iter "mo:base-0.7.3/Iter";
import Nat8 "mo:base-0.7.3/Nat8";
import Nat32 "mo:base-0.7.3/Nat32";

module CRC32 {
// Returns the CRC-32 checksum of the given data using the IEEE polynomial.
Expand Down
4 changes: 2 additions & 2 deletions test/CRC32.mo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Blob "mo:base/Blob";
import Text "mo:base/Text";
import Blob "mo:base-0.7.3/Blob";
import Text "mo:base-0.7.3/Text";

import CRC32 "../src/CRC32";

Expand Down
4 changes: 2 additions & 2 deletions vessel.dhall
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
dependencies = [ "base", "array" ],
compiler = None Text
dependencies = [ "base-0.7.3", "array" ],
compiler = Some "0.7.3"
}

0 comments on commit 8f8bd42

Please sign in to comment.