Repository navigation
chore: remove .dagger and check generated - #13228
Merged
Merged
Conversation
eunomie
force-pushed
the
no-more-check-generated
branch
from
May 28, 2026 10:37
572a11c to
2f55639
Compare
shykes
approved these changes
May 29, 2026
Contributor
|
Love it 🙏 |
eunomie
force-pushed
the
no-more-check-generated
branch
4 times, most recently
from
May 29, 2026 20:43
8fffcc2 to
b6eeaf4
Compare
This is now built-in in checks for all generate functions. Signed-off-by: Yves Brissaud <[email protected]>
Only list or run check derived from generate functions. This allows to mimic the previous custom `dagger check generated` in dagger/dagger. Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
eunomie
force-pushed
the
no-more-check-generated
branch
from
May 30, 2026 06:15
b6eeaf4 to
50bdfd1
Compare
eunomie
added a commit
to eunomie/dagger
that referenced
this pull request
May 30, 2026
dagger#13228 added a 'list with generate only includes generators' subtest that asserts the `dagger check -l --generate` output contains a "Generators" section header. The workspace branch renders checks and generators as a unified flat table with a Type column instead, and its sibling 'list includes generator checks inline' subtest explicitly asserts NotContains "Generators". Adapt the merged-in test to the workspace format: assert the generators appear as generate-type rows, matching the existing inline-list subtest, rather than expecting a "Generators" header. Signed-off-by: Yves Brissaud <[email protected]>
eunomie
added a commit
to eunomie/dagger
that referenced
this pull request
May 30, 2026
dagger#13228 added a 'list with generate only includes generators' subtest that asserts the `dagger check -l --generate` output contains a "Generators" section header. The workspace branch renders checks and generators as a unified flat table with a Type column instead, and its sibling 'list includes generator checks inline' subtest explicitly asserts NotContains "Generators". Adapt the merged-in test to the workspace format: assert the generators appear as generate-type rows, matching the existing inline-list subtest, rather than expecting a "Generators" header. Signed-off-by: Yves Brissaud <[email protected]>
eunomie
added a commit
that referenced
this pull request
May 30, 2026
…13290) The subtest used c.Git(url#sha).Head().Tree(), but the core git().head() API does not honor the URL #fragment: it resolves to the live default-branch HEAD. The test therefore always ran against live main instead of the pinned commit, and only passed because main happened to contain a .dagger directory. After .dagger was removed from main (#13228), it began failing with "stat .dagger: no such file or directory". Pin the commit explicitly via .Commit(sha) so the test is deterministic and exercises the intended historical tree. Signed-off-by: Yves Brissaud <[email protected]>
eunomie
added a commit
that referenced
this pull request
May 30, 2026
#13228 added a 'list with generate only includes generators' subtest that asserts the `dagger check -l --generate` output contains a "Generators" section header. The workspace branch renders checks and generators as a unified flat table with a Type column instead, and its sibling 'list includes generator checks inline' subtest explicitly asserts NotContains "Generators". Adapt the merged-in test to the workspace format: assert the generators appear as generate-type rows, matching the existing inline-list subtest, rather than expecting a "Generators" header. Signed-off-by: Yves Brissaud <[email protected]>
tiborvass
pushed a commit
that referenced
this pull request
Jun 1, 2026
#13228 added a 'list with generate only includes generators' subtest that asserts the `dagger check -l --generate` output contains a "Generators" section header. The workspace branch renders checks and generators as a unified flat table with a Type column instead, and its sibling 'list includes generator checks inline' subtest explicitly asserts NotContains "Generators". Adapt the merged-in test to the workspace format: assert the generators appear as generate-type rows, matching the existing inline-list subtest, rather than expecting a "Generators" header. Signed-off-by: Yves Brissaud <[email protected]>
shykes
pushed a commit
that referenced
this pull request
Jun 1, 2026
* chore: remove .dagger and check generated This is now built-in in checks for all generate functions. Signed-off-by: Yves Brissaud <[email protected]> * feat: add --generate flag to dagger check Only list or run check derived from generate functions. This allows to mimic the previous custom `dagger check generated` in dagger/dagger. Signed-off-by: Yves Brissaud <[email protected]> * chore: generate Signed-off-by: Yves Brissaud <[email protected]> --------- Signed-off-by: Yves Brissaud <[email protected]>
shykes
pushed a commit
that referenced
this pull request
Jun 1, 2026
…13290) The subtest used c.Git(url#sha).Head().Tree(), but the core git().head() API does not honor the URL #fragment: it resolves to the live default-branch HEAD. The test therefore always ran against live main instead of the pinned commit, and only passed because main happened to contain a .dagger directory. After .dagger was removed from main (#13228), it began failing with "stat .dagger: no such file or directory". Pin the commit explicitly via .Commit(sha) so the test is deterministic and exercises the intended historical tree. Signed-off-by: Yves Brissaud <[email protected]>
shykes
pushed a commit
that referenced
this pull request
Jun 1, 2026
#13228 added a 'list with generate only includes generators' subtest that asserts the `dagger check -l --generate` output contains a "Generators" section header. The workspace branch renders checks and generators as a unified flat table with a Type column instead, and its sibling 'list includes generator checks inline' subtest explicitly asserts NotContains "Generators". Adapt the merged-in test to the workspace format: assert the generators appear as generate-type rows, matching the existing inline-list subtest, rather than expecting a "Generators" header. Signed-off-by: Yves Brissaud <[email protected]>
tiborvass
pushed a commit
that referenced
this pull request
Jun 1, 2026
#13228 added a 'list with generate only includes generators' subtest that asserts the `dagger check -l --generate` output contains a "Generators" section header. The workspace branch renders checks and generators as a unified flat table with a Type column instead, and its sibling 'list includes generator checks inline' subtest explicitly asserts NotContains "Generators". Adapt the merged-in test to the workspace format: assert the generators appear as generate-type rows, matching the existing inline-list subtest, rather than expecting a "Generators" header. Signed-off-by: Yves Brissaud <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is now built-in in checks for all generate functions.
I also added a
--generateflag to only return derived checks from generate functions.So:
dagger checkreturns explicit checks + generate checksdagger check --no-generatereturns only explicit checksdagger check --generate🆕 returns only generate checksThat way we can mimic the previous
dagger check generated(that was custom fordagger/daggerrepository) withdagger check --generatein a standard way.