diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index 7638d20..7d77bb5 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2025 ADBC Drivers Contributors +# Copyright (c) 2025-2026 ADBC Drivers Contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,7 +59,7 @@ jobs: run: pip install pre-commit - name: pre-commit (cache) - uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2 + uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 with: path: ~/.cache/pre-commit key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} diff --git a/.github/workflows/dev_issues.yaml b/.github/workflows/dev_issues.yaml index 670a2aa..863ae7b 100644 --- a/.github/workflows/dev_issues.yaml +++ b/.github/workflows/dev_issues.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2025 ADBC Drivers Contributors +# Copyright (c) 2025-2026 ADBC Drivers Contributors # # This file has been modified from its original version, which is # under the Apache License: diff --git a/.github/workflows/dev_pr.yaml b/.github/workflows/dev_pr.yaml index 6f5a0a6..ea00a17 100644 --- a/.github/workflows/dev_pr.yaml +++ b/.github/workflows/dev_pr.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2025 ADBC Drivers Contributors +# Copyright (c) 2025-2026 ADBC Drivers Contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.github/workflows/go_release.yaml b/.github/workflows/go_release.yaml index 46c9d03..b5de3d4 100644 --- a/.github/workflows/go_release.yaml +++ b/.github/workflows/go_release.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2025 ADBC Drivers Contributors +# Copyright (c) 2025-2026 ADBC Drivers Contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,6 +66,7 @@ jobs: with: fetch-depth: 0 persist-credentials: false + submodules: 'recursive' - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 with: @@ -73,7 +74,7 @@ jobs: check-latest: true go-version-file: go/go.mod - - uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3 + - uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 with: pixi-version: v0.63.2 run-install: false @@ -87,6 +88,13 @@ jobs: ./ci/scripts/pre-build.sh test ${{ matrix.platform }} ${{ matrix.arch }} fi + set -a + if [[ -f .env.build ]]; then + echo "Loading .env.build" + source .env.build + fi + set +a + go build ./... - name: Start Test Dependencies @@ -160,6 +168,7 @@ jobs: with: fetch-depth: 0 persist-credentials: false + submodules: 'recursive' - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 with: @@ -167,7 +176,7 @@ jobs: check-latest: true go-version-file: go/go.mod - - uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3 + - uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 with: pixi-version: v0.63.2 run-install: false @@ -185,12 +194,15 @@ jobs: ./ci/scripts/pre-build.sh test ${{ matrix.platform }} ${{ matrix.arch }} fi set -a - if [[ -f .env.release ]]; then + if [[ -f .env.build ]]; then + echo "Loading .env.build" + source .env.build + fi + if [[ -f .env.test ]]; then source .env.test fi set +a pixi run adbc-make build DEBUG=true VERBOSE=true DRIVER=snowflake IMPL_LANG=go - - name: Start Test Dependencies # Can't use Docker on macOS AArch64 runners, and Windows containers # work but often the container doesn't support Windows @@ -277,6 +289,7 @@ jobs: with: fetch-depth: 0 persist-credentials: false + submodules: 'recursive' - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 with: @@ -284,7 +297,7 @@ jobs: check-latest: true go-version-file: go/go.mod - - uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3 + - uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 with: pixi-version: v0.63.2 run-install: false @@ -306,6 +319,10 @@ jobs: ./ci/scripts/pre-build.sh release ${{ matrix.platform }} ${{ matrix.arch }} fi set -a + if [[ -f .env.build ]]; then + echo "Loading .env.build" + source .env.build + fi if [[ -f .env.release ]]; then source .env.release fi @@ -330,13 +347,14 @@ jobs: with: fetch-depth: 0 persist-credentials: false + submodules: 'recursive' - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 with: check-latest: true go-version: "stable" - - uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3 + - uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 with: pixi-version: v0.63.2 run-install: false @@ -401,7 +419,7 @@ jobs: - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 with: go-version: 'stable' - - uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3 + - uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 with: pixi-version: v0.63.2 run-install: false @@ -426,6 +444,7 @@ jobs: with: fetch-depth: 1 persist-credentials: false + submodules: 'recursive' - name: load package working-directory: go run: | @@ -433,10 +452,15 @@ jobs: echo "Loading pre-build" ./ci/scripts/pre-build.sh test ${{ matrix.platform }} ${{ matrix.arch }} fi - + set -a + if [[ -f .env.build ]]; then + echo "Loading .env.build" + source .env.build + fi if [[ -f .env.ci ]]; then source .env.ci fi + set +a pixi exec -s adbc-driver-manager -s pyarrow -s pytest python -m pytest -vs ci/test_package.py release: @@ -454,13 +478,9 @@ jobs: with: fetch-depth: 0 persist-credentials: false + submodules: 'recursive' - - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 - with: - check-latest: true - go-version: "stable" - - - uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3 + - uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 with: pixi-version: v0.63.2 run-install: false diff --git a/.github/workflows/go_test.yaml b/.github/workflows/go_test.yaml index 0926df9..63151c6 100644 --- a/.github/workflows/go_test.yaml +++ b/.github/workflows/go_test.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2025 ADBC Drivers Contributors +# Copyright (c) 2025-2026 ADBC Drivers Contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -92,6 +92,7 @@ jobs: with: fetch-depth: 0 persist-credentials: false + submodules: 'recursive' - name: "checkout remote" uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -101,6 +102,7 @@ jobs: ref: ${{ inputs.ref }} fetch-depth: 0 persist-credentials: false + submodules: 'recursive' - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 with: @@ -108,7 +110,7 @@ jobs: check-latest: true go-version-file: go/go.mod - - uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3 + - uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 with: pixi-version: v0.63.2 run-install: false @@ -122,6 +124,13 @@ jobs: ./ci/scripts/pre-build.sh test ${{ matrix.platform }} ${{ matrix.arch }} fi + set -a + if [[ -f .env.build ]]; then + echo "Loading .env.build" + source .env.build + fi + set +a + go build ./... - name: Start Test Dependencies @@ -196,6 +205,7 @@ jobs: with: fetch-depth: 0 persist-credentials: false + submodules: 'recursive' - name: "checkout remote" uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -205,6 +215,7 @@ jobs: ref: ${{ inputs.ref }} fetch-depth: 0 persist-credentials: false + submodules: 'recursive' - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 with: @@ -212,7 +223,7 @@ jobs: check-latest: true go-version-file: go/go.mod - - uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3 + - uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 with: pixi-version: v0.63.2 run-install: false @@ -230,12 +241,15 @@ jobs: ./ci/scripts/pre-build.sh test ${{ matrix.platform }} ${{ matrix.arch }} fi set -a - if [[ -f .env.release ]]; then + if [[ -f .env.build ]]; then + echo "Loading .env.build" + source .env.build + fi + if [[ -f .env.test ]]; then source .env.test fi set +a pixi run adbc-make build DEBUG=true VERBOSE=true DRIVER=snowflake IMPL_LANG=go - - name: Start Test Dependencies # Can't use Docker on macOS AArch64 runners, and Windows containers # work but often the container doesn't support Windows @@ -323,6 +337,7 @@ jobs: with: fetch-depth: 0 persist-credentials: false + submodules: 'recursive' - name: "checkout remote" uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -332,6 +347,7 @@ jobs: ref: ${{ inputs.ref }} fetch-depth: 0 persist-credentials: false + submodules: 'recursive' - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 with: @@ -339,7 +355,7 @@ jobs: check-latest: true go-version-file: go/go.mod - - uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3 + - uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 with: pixi-version: v0.63.2 run-install: false @@ -361,6 +377,10 @@ jobs: ./ci/scripts/pre-build.sh release ${{ matrix.platform }} ${{ matrix.arch }} fi set -a + if [[ -f .env.build ]]; then + echo "Loading .env.build" + source .env.build + fi if [[ -f .env.release ]]; then source .env.release fi @@ -386,6 +406,7 @@ jobs: with: fetch-depth: 0 persist-credentials: false + submodules: 'recursive' - name: "checkout remote" uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -395,13 +416,14 @@ jobs: ref: ${{ inputs.ref }} fetch-depth: 0 persist-credentials: false + submodules: 'recursive' - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 with: check-latest: true go-version: "stable" - - uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3 + - uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 with: pixi-version: v0.63.2 run-install: false @@ -466,7 +488,7 @@ jobs: - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 with: go-version: 'stable' - - uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3 + - uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 with: pixi-version: v0.63.2 run-install: false @@ -492,6 +514,7 @@ jobs: with: fetch-depth: 1 persist-credentials: false + submodules: 'recursive' - name: "checkout remote" uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 if: github.event_name == 'workflow_dispatch' @@ -500,6 +523,7 @@ jobs: ref: ${{ inputs.ref }} fetch-depth: 1 persist-credentials: false + submodules: 'recursive' - name: load package working-directory: go run: | @@ -507,10 +531,15 @@ jobs: echo "Loading pre-build" ./ci/scripts/pre-build.sh test ${{ matrix.platform }} ${{ matrix.arch }} fi - + set -a + if [[ -f .env.build ]]; then + echo "Loading .env.build" + source .env.build + fi if [[ -f .env.ci ]]; then source .env.ci fi + set +a pixi exec -s adbc-driver-manager -s pyarrow -s pytest python -m pytest -vs ci/test_package.py release: @@ -529,6 +558,7 @@ jobs: with: fetch-depth: 0 persist-credentials: false + submodules: 'recursive' - name: "checkout remote" uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -538,13 +568,9 @@ jobs: ref: ${{ inputs.ref }} fetch-depth: 0 persist-credentials: false + submodules: 'recursive' - - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 - with: - check-latest: true - go-version: "stable" - - - uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3 + - uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 with: pixi-version: v0.63.2 run-install: false diff --git a/.github/workflows/go_test_pr.yaml b/.github/workflows/go_test_pr.yaml index bb648f1..6fb4578 100644 --- a/.github/workflows/go_test_pr.yaml +++ b/.github/workflows/go_test_pr.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2025 ADBC Drivers Contributors +# Copyright (c) 2025-2026 ADBC Drivers Contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.golangci.toml b/.golangci.toml index 86b8b00..817a57c 100644 --- a/.golangci.toml +++ b/.golangci.toml @@ -1,4 +1,4 @@ -# Copyright (c) 2025 ADBC Drivers Contributors +# Copyright (c) 2025-2026 ADBC Drivers Contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fe12f6c..53249cf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 36243b70e5ce219623c3503f5afba0f8c96fda55 # frozen: v0.14.7 + rev: 0470f7c8a653e950f7cc5a653204ceb3fde4c02a # frozen: v0.15.0 hooks: - id: ruff-check name: "ruff check (isort)" @@ -33,7 +33,7 @@ repos: )$ - repo: https://github.com/golangci/golangci-lint - rev: a4b55ebc3471c9fbb763fd56eefede8050f99887 # frozen: v2.7.1 + rev: e2e40021c9007020676c93680a36e3ab06c6cd33 # frozen: v2.8.0 hooks: - id: golangci-lint name: lint @@ -57,6 +57,6 @@ repos: - id: trailing-whitespace - repo: https://github.com/adbc-drivers/dev - rev: 8ba235d79417939cf59e94ab85204731f7cbb9ba + rev: b302aedd1c2a3446c7d6579513d1ebfc413070a6 hooks: - id: rat diff --git a/.rat-apache b/.rat-apache index dc8cc07..86b6c9b 100644 --- a/.rat-apache +++ b/.rat-apache @@ -14,6 +14,7 @@ .github/workflows/dev_issues.yaml +csharp/Directory.Build.props csharp/src/Interop/Build-SnowflakeDriver.ps1 csharp/src/Interop/copySnowflakeDriver.sh csharp/src/Interop/SnowflakeDriverLoader.cs diff --git a/csharp/Directory.Build.props b/csharp/Directory.Build.props index 53fffac..48c88ad 100644 --- a/csharp/Directory.Build.props +++ b/csharp/Directory.Build.props @@ -1,6 +1,9 @@