From 9204fcd7c2dcf8d06c32e8aebe12d1753520d33a Mon Sep 17 00:00:00 2001 From: "Masih H. Derkani" Date: Thu, 10 Jun 2021 10:52:07 +0100 Subject: [PATCH 1/2] Define CAR v2 as a separate go module Since we are releasing a new major version, define a new go module for the CAR v2 implementation, following the recommendations here: - https://blog.golang.org/v2-go-modules The module is versioned as go 1.15 to maintain compatibility as pointed out by comment here: - https://github.com/ipld/go-car/pull/75#discussion_r644634850 --- v2/go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 v2/go.mod diff --git a/v2/go.mod b/v2/go.mod new file mode 100644 index 00000000..f8eec48c --- /dev/null +++ b/v2/go.mod @@ -0,0 +1,3 @@ +module github.com/ipld/go-car/v2 + +go 1.15 From b76cf26fba2e7e29ac82014dc99602fc76770e34 Mon Sep 17 00:00:00 2001 From: "Masih H. Derkani" Date: Thu, 10 Jun 2021 11:12:05 +0100 Subject: [PATCH 2/2] Add `doc.go` to avoid CI issues for empty modules We might want to get this fixed at source; it is valid for a module to have no go files i think, and CI should tolerate that. --- v2/doc.go | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 v2/doc.go diff --git a/v2/doc.go b/v2/doc.go new file mode 100644 index 00000000..5b210211 --- /dev/null +++ b/v2/doc.go @@ -0,0 +1,3 @@ +// Package car represents the CAR v2 implementation. +// TODO add CAR v2 byte structure here. +package car