Update compiler to consume local imports #7576
lint.yaml
on: pull_request
License Check
1m 16s
Lint Go
3m 26s
Lint YAML & Markdown
45s
Annotations
4 errors
Lint YAML & Markdown
Process completed with exit code 1.
|
Lint Go:
pkg/composableschemadsl/compiler/importer.go#L1
Please run go run mage.go lint:go.
diff --git a/pkg/composableschemadsl/compiler/importer.go b/pkg/composableschemadsl/compiler/importer.go
index 7022fce..af67493 100644
--- a/pkg/composableschemadsl/compiler/importer.go
+++ b/pkg/composableschemadsl/compiler/importer.go
@@ -5,9 +5,10 @@ import (
"os"
"path"
+ "github.com/rs/zerolog/log"
+
"github.com/authzed/spicedb/pkg/composableschemadsl/input"
"github.com/authzed/spicedb/pkg/genutil/mapz"
- "github.com/rs/zerolog/log"
)
const SchemaFileSuffix = ".zed"
|
Lint Go:
pkg/composableschemadsl/compiler/importer_test.go#L1
Please run go run mage.go lint:go.
diff --git a/pkg/composableschemadsl/compiler/importer_test.go b/pkg/composableschemadsl/compiler/importer_test.go
index 7e54a52..d251313 100644
--- a/pkg/composableschemadsl/compiler/importer_test.go
+++ b/pkg/composableschemadsl/compiler/importer_test.go
@@ -5,16 +5,16 @@ import (
"os"
"testing"
- "github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
+ "github.com/stretchr/testify/require"
- "github.com/authzed/spicedb/pkg/composableschemadsl/input"
"github.com/authzed/spicedb/pkg/composableschemadsl/compiler"
"github.com/authzed/spicedb/pkg/composableschemadsl/generator"
+ "github.com/authzed/spicedb/pkg/composableschemadsl/input"
)
type importerTest struct {
- name string
+ name string
folder string
}
@@ -76,5 +76,4 @@ func TestImporter(t *testing.T) {
}
})
}
-
}
|
Lint Go
Process completed with exit code 1.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
diff
|
545 Bytes |
|