aboutsummaryrefslogtreecommitdiffstats
path: root/skate
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-05-22 22:28:44 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-05-22 22:28:44 +0200
commitd1d74b6ddcb432e8f2b7bfcbe1a784b2db0ae382 (patch)
tree98d0df14dbfb44d553699d37309a2a292b4aa6fc /skate
parent0f879ccbaa3cd29042d7b6e559c8c9661ca8a85e (diff)
downloadrefcat-d1d74b6ddcb432e8f2b7bfcbe1a784b2db0ae382.tar.gz
refcat-d1d74b6ddcb432e8f2b7bfcbe1a784b2db0ae382.zip
fix ol calls
Diffstat (limited to 'skate')
-rw-r--r--skate/cmd/skate-conv/main.go2
-rw-r--r--skate/cmd/skate-reduce/main.go8
-rw-r--r--skate/schema_test.go2
3 files changed, 6 insertions, 6 deletions
diff --git a/skate/cmd/skate-conv/main.go b/skate/cmd/skate-conv/main.go
index 4a33473..27f09e2 100644
--- a/skate/cmd/skate-conv/main.go
+++ b/skate/cmd/skate-conv/main.go
@@ -98,7 +98,7 @@ func openLibraryToRelease(p []byte) ([]byte, error) {
if err = json.Unmarshal(p, &w); err != nil {
return nil, err
}
- if release, err = skate.OpenLibraryToRelease(&w); err != nil {
+ if release, err = skate.OpenLibraryWorkToRelease(&w); err != nil {
return nil, err
}
release.Extra.Skate.Status = "ol"
diff --git a/skate/cmd/skate-reduce/main.go b/skate/cmd/skate-reduce/main.go
index 9c87a35..f26bdf7 100644
--- a/skate/cmd/skate-reduce/main.go
+++ b/skate/cmd/skate-reduce/main.go
@@ -149,10 +149,10 @@ func main() {
log.Fatal(err)
}
case "olmerge":
- e, w, err := xio.OpenTwo(*openLibraryEditions, *openLibraryWorks)
- if err != nil {
- log.Fatal(err)
- }
+ // e, w, err := xio.OpenTwo(*openLibraryEditions, *openLibraryWorks)
+ // if err != nil {
+ // log.Fatal(err)
+ // }
default:
log.Fatalf("invalid mode")
}
diff --git a/skate/schema_test.go b/skate/schema_test.go
index 56d2d5b..ecc46c6 100644
--- a/skate/schema_test.go
+++ b/skate/schema_test.go
@@ -123,7 +123,7 @@ func TestOpenLibraryToRelease(t *testing.T) {
},
}
for _, c := range cases {
- r, err := OpenLibraryToRelease(&c.work)
+ r, err := OpenLibraryWorkToRelease(&c.work)
if err != nil {
t.Fatalf("got %v, want %v", err, c.err)
}