Skip to content

fix(core): preserve conventional enum member names - #13435

Merged
vito merged 1 commit into
mainfrom
codex/fix-dang-normalized-enums
Jun 16, 2026
Merged

vito merged 1 commit into
mainfrom
codex/fix-dang-normalized-enums

Conversation

@dagger-codex

@dagger-codex dagger-codex Bot commented Jun 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • preserve enum member names that already look like conventional GraphQL enum constants, such as P256, X25519, and ED25519
  • keep normalizing non-conventional enum member names like fooBar, foo-bar, and lowercase forms to screaming snake case
  • keep withName verbatim for enum members, matching the existing type rename behavior
  • add a Dang integration regression where a dependent module calls foo.curve(FooEcCurve.P256) and foo receives P256

Original report requested by Mark (<@529485027071754273>, Discord user ID 529485027071754273).
Follow-up fix direction requested by vito (<@108011715077091328>, Discord user ID 108011715077091328).

Tests

  • go test ./core -run 'Test(TypeDefWithNameVerbatim|EnumMemberNameFormatting)' -count=1
  • go test ./core/sdk/dang/... -count=1
  • dagger --progress=plain call engine-dev test --pkg="./core/integration" --run="^TestDang/TestEnums/dependency_enum_member_with_digits$"
  • dagger --progress=plain call engine-dev test --pkg="./core/integration" --run="^TestType/TestCustomEnumType/custom_external_enum_type$"

@dagger-codex
dagger-codex Bot force-pushed the codex/fix-dang-normalized-enums branch from 5f83f18 to a5a15e5 Compare June 12, 2026 17:24
@dagger-codex dagger-codex Bot changed the title fix(dang): resolve normalized enum values fix(dang): preserve enum member names Jun 12, 2026
@dagger-codex
dagger-codex Bot marked this pull request as draft June 12, 2026 18:33
@dagger-codex
dagger-codex Bot force-pushed the codex/fix-dang-normalized-enums branch from a5a15e5 to 3c04edb Compare June 12, 2026 18:35
@dagger-codex dagger-codex Bot changed the title fix(dang): preserve enum member names fix(dang): preserve enum values across normalization Jun 12, 2026
@dagger-codex
dagger-codex Bot force-pushed the codex/fix-dang-normalized-enums branch from 3c04edb to 4bb265e Compare June 12, 2026 19:54
@dagger-codex dagger-codex Bot changed the title fix(dang): preserve enum values across normalization fix(core): preserve conventional enum member names Jun 12, 2026
@dagger-codex
dagger-codex Bot marked this pull request as ready for review June 12, 2026 19:54
@vito
vito requested a review from sipsma June 15, 2026 23:56
@vito
vito merged commit 0f90752 into main Jun 16, 2026
79 checks passed
@vito
vito deleted the codex/fix-dang-normalized-enums branch June 16, 2026 15:09
marcosnils pushed a commit that referenced this pull request Jun 16, 2026
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
dagger 0.21.7

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## v0.21.7 - 2026-06-17

### Changed

- Bump default CNI IP address pool size to reduce address exhaustion under high container concurrency. by @sipsma in dagger/dagger#13394
- Bump Dang to v2.1.1, moving JSON encoding behind the `JSON` namespace (with a deprecated top-level `toJSON`) and picking up constructor scope and nullable input fixes. by @vito in dagger/dagger#13482

### Fixed

- `.env` file handling so non-matching variables are kept as hidden expansion context instead of being dropped, allowing later variables to expand against them. by @marcosnils in dagger/dagger#13490
- Filesync so syncing a re-included file under a gitignored directory (e.g. `foo/` ignored with `!foo/bar.txt`) no longer fails with `no such file or directory`; ignored parent dirs are now created on demand for visible descendants. by @grouville in dagger/dagger#13439
- A concurrent map panic during GC by guarding session client map iteration, preventing fatal `concurrent map iteration and map write` crashes. by @sipsma in dagger/dagger#13474
- Go SDK codegen so SDK auth config is forwarded to typedef generation, allowing modules with private transitive Go dependencies to resolve during codegen. by @grouville in dagger/dagger#13457
- Core enum handling to preserve conventional enum member names. by @shykes in dagger/dagger#13435
- The Apple `container` driver to honor the privileged option by granting all capabilities (`--cap-add ALL`), so the engine can bind-mount `/etc/resolv.conf` on startup with `container` 1.0.0's reduced default capability set. by @eunomie in dagger/dagger#13460
- Dang directive argument resolution so `@cache` (and other directive) arguments resolve against the declaring type's file scope, fixing `FunctionCachePolicy not found in env` errors in multi-file modules. by @vito in dagger/dagger#13455
- The report-mode heartbeat so it waits for its goroutine to exit before final render, avoiding interleaved output. by @kpenfound in dagger/dagger#13425
- Nullable result unwrapping for SDK input so nullable values are passed correctly into SDK functions. by @shykes in dagger/dagger#13401

### What to do next?

- Read the [documentation](https://docs.dagger.io)
- Join our [Discord server](https://discord.gg/dagger-io)
- Follow us on [Twitter](https://twitter.com/dagger_io)

</pre>
  <p>View the full release notes at <a href="https://github.com/dagger/dagger/releases/tag/v0.21.7">https://github.com/dagger/dagger/releases/tag/v0.21.7</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!11763
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