-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Group dependency updates (#1095)
* chore: Group dependency updates Dependency updates for supporting code (i.e. docs, dagger, acceptance-tests) should be bundled into a single PR. Replaces #1094 * Vendor dagger code to enable dependabot updates * Add workflow for detecting a drift in the generated Dagger files * Update dagger/README.md regarding auto-generated files
- Loading branch information
Showing
23 changed files
with
10,312 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: "Check for drift in Dagger files" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
check-dagger-drift: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
|
||
- name: Determine Dagger version | ||
id: dagger_version | ||
run: | | ||
sudo wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq | ||
sudo chmod +x /usr/bin/yq | ||
cat .github/workflows/acceptance-tests.yml| yq -r '.jobs.build.steps[] | select(.id == "dagger") | .with.version' > .version | ||
echo "version=$(<.version)" > $GITHUB_OUTPUT | ||
rm -rf .version | ||
- uses: actions/cache@v4 | ||
id: cache_daggercli | ||
with: | ||
path: bin | ||
key: daggercli-download-${{ steps.dagger_version.outputs.version }} | ||
|
||
- name: Install Dagger CLI | ||
if: steps.cache_daggercli.outputs.cache-hit != 'true' | ||
shell: bash | ||
run: | | ||
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=${{ steps.dagger_version.outputs.version }} sh | ||
- name: Check drift | ||
run: | | ||
set -e | ||
export PATH=$PATH:$PWD/bin | ||
make dagger-develop | ||
if [[ -z "$(git status --porcelain ./dagger)" ]]; then | ||
echo "No drift detected" | ||
else | ||
echo "Drift detected. Run 'make dagger-develop' and commit the changed files." | ||
git diff | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
/dagger.gen.go | ||
/internal/dagger | ||
/internal/querybuilder | ||
/internal/telemetry | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Dagger setup for Tanka development | ||
|
||
This module includes dagger functions to be used during development of Tanka. | ||
To work on these functions, please run `dagger develop` in the root directory | ||
of the project, which generates the required libraries. | ||
Part of it are also auto-generated files created using `dagger develop`. When | ||
updating Dagger you might need to run this command through `make | ||
dagger-develop` to update these files. |
Oops, something went wrong.