Skip to content

Commit

Permalink
Fix v2 release (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
guregu committed Oct 31, 2022
1 parent 85592e2 commit 8563b05
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions authorizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"strings"

"github.com/biscuit-auth/biscuit-go/datalog"
"github.com/biscuit-auth/biscuit-go/pb"
"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/biscuit-auth/biscuit-go/v2/pb"
"google.golang.org/protobuf/proto"
)

Expand Down
4 changes: 2 additions & 2 deletions biscuit.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"fmt"
"io"

"github.com/biscuit-auth/biscuit-go/datalog"
"github.com/biscuit-auth/biscuit-go/pb"
"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/biscuit-auth/biscuit-go/v2/pb"

//"github.com/biscuit-auth/biscuit-go/sig"
"google.golang.org/protobuf/proto"
Expand Down
2 changes: 1 addition & 1 deletion biscuit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"testing"

"github.com/biscuit-auth/biscuit-go/datalog"
"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"errors"
"io"

"github.com/biscuit-auth/biscuit-go/datalog"
"github.com/biscuit-auth/biscuit-go/pb"
"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/biscuit-auth/biscuit-go/v2/pb"

//"github.com/biscuit-auth/biscuit-go/sig"
"google.golang.org/protobuf/proto"
Expand Down
4 changes: 2 additions & 2 deletions converters.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package biscuit
import (
"fmt"

"github.com/biscuit-auth/biscuit-go/datalog"
"github.com/biscuit-auth/biscuit-go/pb"
"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/biscuit-auth/biscuit-go/v2/pb"
"google.golang.org/protobuf/proto"
)

Expand Down
4 changes: 2 additions & 2 deletions converters_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"reflect"

"github.com/biscuit-auth/biscuit-go/datalog"
"github.com/biscuit-auth/biscuit-go/pb"
"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/biscuit-auth/biscuit-go/v2/pb"
)

func tokenFactToProtoFactV2(input datalog.Fact) (*pb.FactV2, error) {
Expand Down
4 changes: 2 additions & 2 deletions converters_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"
"time"

"github.com/biscuit-auth/biscuit-go/datalog"
"github.com/biscuit-auth/biscuit-go/pb"
"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/biscuit-auth/biscuit-go/v2/pb"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/proto"
)
Expand Down
4 changes: 2 additions & 2 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"crypto/rand"
"fmt"

"github.com/biscuit-auth/biscuit-go"
"github.com/biscuit-auth/biscuit-go/parser"
"github.com/biscuit-auth/biscuit-go/v2"
"github.com/biscuit-auth/biscuit-go/v2/parser"
)

func ExampleBiscuit() {
Expand Down
4 changes: 2 additions & 2 deletions experiments/pop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"
"github.com/biscuit-auth/biscuit-go"
"github.com/biscuit-auth/biscuit-go/v2"
"github.com/biscuit-auth/biscuit-go/sig"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -310,4 +310,4 @@ func verifySignature(t *testing.T, rootPubKey sig.PublicKey, b []byte) {
t.Logf("verifySignature world after:\n%s", verifier.PrintWorld())
require.NoError(t, verifier.Verify())
}
*/
*/
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/biscuit-auth/biscuit-go
module github.com/biscuit-auth/biscuit-go/v2

go 1.17

Expand Down
2 changes: 1 addition & 1 deletion parser/grammar.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/alecthomas/participle/v2"
"github.com/alecthomas/participle/v2/lexer"
"github.com/biscuit-auth/biscuit-go"
"github.com/biscuit-auth/biscuit-go/v2"
)

type Comment string
Expand Down
2 changes: 1 addition & 1 deletion parser/grammar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"

"github.com/alecthomas/participle/v2"
"github.com/biscuit-auth/biscuit-go"
"github.com/biscuit-auth/biscuit-go/v2"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/alecthomas/participle/v2"
"github.com/alecthomas/participle/v2/lexer"
"github.com/biscuit-auth/biscuit-go"
"github.com/biscuit-auth/biscuit-go/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/biscuit-auth/biscuit-go"
"github.com/biscuit-auth/biscuit-go/v2"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions samples/samples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"
"time"

"github.com/biscuit-auth/biscuit-go"
"github.com/biscuit-auth/biscuit-go/parser"
"github.com/biscuit-auth/biscuit-go/v2"
"github.com/biscuit-auth/biscuit-go/v2/parser"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/biscuit-auth/biscuit-go/datalog"
"github.com/biscuit-auth/biscuit-go/v2/datalog"
)

const MinSchemaVersion uint32 = 3
Expand Down
2 changes: 1 addition & 1 deletion types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/biscuit-auth/biscuit-go/datalog"
"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions website_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"io"

"github.com/biscuit-auth/biscuit-go"
"github.com/biscuit-auth/biscuit-go/parser"
"github.com/biscuit-auth/biscuit-go/v2"
"github.com/biscuit-auth/biscuit-go/v2/parser"
)

// code examples for the documentation at https://www.biscuitsec.org
Expand Down

0 comments on commit 8563b05

Please sign in to comment.