Skip to content

sdk(dang): implement @up annotation#12919

Merged
eunomie merged 3 commits intodagger:mainfrom
eunomie:dang-up
Apr 8, 2026
Merged

sdk(dang): implement @up annotation#12919
eunomie merged 3 commits intodagger:mainfrom
eunomie:dang-up

Conversation

@eunomie
Copy link
Copy Markdown
Member

@eunomie eunomie commented Apr 7, 2026

Add support for the @up directive in the Dang SDK, matching the existing +up (Go), @up() (TypeScript), @up (Python), and @up (Java) annotations.

  • Declare @up in the coreDirectives schema (dagql/server.go) so the Dang parser accepts it
  • Handle case "up" in the directive switch in dang_op.go to emit the withUp dagql selector during module registration
  • Add hello-with-services-dang test fixture with web, redis, and nested infra:database services
  • Add Dang to TestUpDirectSDK and TestUpAsToolchain integration tests

@eunomie eunomie requested a review from vito April 7, 2026 15:15
Copy link
Copy Markdown
Contributor

@vito vito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! just some style nitpicks

Comment thread core/integration/testdata/services/hello-with-services-dang/main.dang Outdated
Comment thread core/integration/testdata/services/hello-with-services-dang/main.dang Outdated
Comment thread core/integration/testdata/services/hello-with-services-dang/main.dang Outdated
@tiborvass tiborvass requested a review from a team as a code owner April 7, 2026 23:53
eunomie and others added 3 commits April 7, 2026 18:11
Add support for the @up directive in the Dang SDK, matching the existing
+up (Go), @up() (TypeScript), @up (Python), and @up (Java) annotations.

- Declare @up in the coreDirectives schema (dagql/server.go) so the Dang
  parser accepts it
- Handle case "up" in the directive switch in dang_op.go to emit the
  withUp dagql selector during module registration
- Add hello-with-services-dang test fixture with web, redis, and nested
  infra:database services
- Add Dang to TestUpDirectSDK and TestUpAsToolchain integration tests

Signed-off-by: Yves Brissaud <yves@dagger.io>
Co-authored-by: Alex Suraci <suraci.alex@gmail.com>
Signed-off-by: Yves Brissaud <yves.brissaud@gmail.com>
Signed-off-by: Tibor Vass <teabee89@gmail.com>
@eunomie eunomie merged commit 5bc34cf into dagger:main Apr 8, 2026
66 checks passed
@eunomie eunomie deleted the dang-up branch April 8, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants