Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1 SDK - full move #7192

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
67e8954
Moving (most) source to v1 root dir
johanfylling Nov 21, 2024
0f17753
Making v1 the default rego-version
johanfylling Nov 21, 2024
c22d553
Adding back v0 API to root
johanfylling Nov 22, 2024
31b5f17
Adding tests
johanfylling Nov 24, 2024
f607a52
Adding default rego-version to test runner
johanfylling Nov 25, 2024
8b86b19
Fixing linter issues
johanfylling Nov 25, 2024
9ecc0d8
Adding deprecation notes to packages
johanfylling Nov 25, 2024
42091b8
Adding all built-in declarations to `ast`
johanfylling Nov 25, 2024
ab1fef3
Adding `topdown.NewPrintHook()`
johanfylling Nov 25, 2024
893d58f
Applying default rego-version to `format.SourceWithOpts()`
johanfylling Nov 25, 2024
713d18d
Merge branch 'main' into rego-v1/sdk_full_move
johanfylling Nov 25, 2024
3698c00
Updating Wasm tests
johanfylling Nov 25, 2024
26dad00
Updating `check-yaml-tests` location
johanfylling Nov 25, 2024
2556737
Adding `staticcheck` exclusions for `SA1019` deprecation warnings
johanfylling Nov 25, 2024
8b4aed0
Adding missing bundle for test
johanfylling Nov 25, 2024
e9bf88a
Fixing `TestWasmE2E`
johanfylling Nov 25, 2024
525527a
Updating moke tests
johanfylling Nov 25, 2024
5bbce70
Adding `ast/compilehelper` tests
johanfylling Nov 27, 2024
1318f4b
Updating `cmd` tests
johanfylling Nov 28, 2024
8b531ca
Adding back v0 `repl` package
johanfylling Nov 28, 2024
c31fba7
Updating tests
johanfylling Nov 29, 2024
fdb173d
Adding doc to `v1` package
johanfylling Dec 2, 2024
a6b2a0e
Fixing `ast.TypeEnv` type alias
johanfylling Dec 2, 2024
a2d628c
Fixing v0 API components
johanfylling Dec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
129 changes: 129 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,135 @@ run:

issues:
max-same-issues: 0 # don't hide issues in CI runs because they are the same type
exclude-rules:
- path: ast/
linters:
- staticcheck
text: "SA1019"
- path: bundle/
linters:
- staticcheck
text: "SA1019"
- path: capabilities/
linters:
- staticcheck
text: "SA1019"
- path: compile/
linters:
- staticcheck
text: "SA1019"
- path: config/
linters:
- staticcheck
text: "SA1019"
- path: cover/
linters:
- staticcheck
text: "SA1019"
- path: debug/
linters:
- staticcheck
text: "SA1019"
- path: dependencies/
linters:
- staticcheck
text: "SA1019"
- path: download/
linters:
- staticcheck
text: "SA1019"
- path: format/
linters:
- staticcheck
text: "SA1019"
- path: hooks/
linters:
- staticcheck
text: "SA1019"
- path: ir/
linters:
- staticcheck
text: "SA1019"
- path: keys/
linters:
- staticcheck
text: "SA1019"
- path: loader/
linters:
- staticcheck
text: "SA1019"
- path: logging/
linters:
- staticcheck
text: "SA1019"
- path: metrics/
linters:
- staticcheck
text: "SA1019"
- path: plugins/
linters:
- staticcheck
text: "SA1019"
- path: profiler/
linters:
- staticcheck
text: "SA1019"
- path: refactor/
linters:
- staticcheck
text: "SA1019"
- path: repl/
linters:
- staticcheck
text: "SA1019"
- path: rego/
linters:
- staticcheck
text: "SA1019"
- path: resolver/
linters:
- staticcheck
text: "SA1019"
- path: runtime/
linters:
- staticcheck
text: "SA1019"
- path: schemas/
linters:
- staticcheck
text: "SA1019"
- path: sdk/
linters:
- staticcheck
text: "SA1019"
- path: server/
linters:
- staticcheck
text: "SA1019"
- path: storage/
linters:
- staticcheck
text: "SA1019"
- path: tester/
linters:
- staticcheck
text: "SA1019"
- path: topdown/
linters:
- staticcheck
text: "SA1019"
- path: tracing/
linters:
- staticcheck
text: "SA1019"
- path: types/
linters:
- staticcheck
text: "SA1019"
- path: util/
linters:
- staticcheck
text: "SA1019"

linter-settings:
lll:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ wasm-lib-clean:

.PHONY: wasm-rego-testgen-install
wasm-rego-testgen-install:
$(GO) install ./test/wasm/cmd/wasm-rego-testgen
$(GO) install ./v1/test/wasm/cmd/wasm-rego-testgen

######################################################
#
Expand Down Expand Up @@ -479,7 +479,7 @@ check-go-module:
.PHONY: check-yaml-tests
check-yaml-tests:
ifeq ($(DOCKER_RUNNING), 1)
docker run --rm -v $(shell pwd):/data:ro,Z -w /data pipelinecomponents/yamllint:${YAML_LINT_VERSION} yamllint -f $(YAML_LINT_FORMAT) test/cases/testdata
docker run --rm -v $(shell pwd):/data:ro,Z -w /data pipelinecomponents/yamllint:${YAML_LINT_VERSION} yamllint -f $(YAML_LINT_FORMAT) v1/test/cases/testdata
else
@echo "Docker not installed or running. Skipping yamllint run."
endif
Expand Down
Loading