Repository navigation
fix: cap dartastic_opentelemetry_api below 1.0.0-rc.4 - #49
Conversation
dartastic_opentelemetry_api 1.0.0-rc.4 (2026-10-08) removed members that dartastic_opentelemetry 1.1.0-beta.15 still calls (APISpan.attributes, spanEvents, status, statusDescription, ...), so that pair does not compile: 16 of 19 test files fail to load on main, while `flutter analyze` stays green because it does not analyse a dependency's own sources. `^1.0.0-rc.3` does not keep rc.4 out. pub selects this package first and takes the newest, rc.4, then settles for beta.15, because beta.16 (which carries the same cap) is the one release that cannot sit beside rc.4. Every fresh `pub get` therefore got the broken pair, beta.16's existence notwithstanding. With the cap a fresh resolve of the package and of the example is beta.16 with rc.3; format, analyze and all 217 tests pass. Lift the cap when dartastic_opentelemetry ships a release built on rc.4. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XLy7TiPAxtVjPKEwQ9iwBa
|
Attempt 1 (run 37850098355, job 113560596835). Attempt 2 (job 113566138900).
No open PR or issue carries a fix, and a runner-side emulator hang is not something this PR can fix, so I'm leaving the test as it is (not skipped, not retried again) and merging on the strength of everything else. A follow-up on the API 34 job (shorter Generated by Claude Code |
Summary
dartastic_opentelemetry_api1.0.0-rc.4 (published 2026-10-08) breaksdartastic_opentelemetry1.1.0-beta.15, and a freshpub getof this package resolves exactly that pair. This caps the API dependency at>=1.0.0-rc.3 <1.0.0-rc.4, the same range the upstream beta.16 declares for itself.Intent
mainis red for any fresh resolve. CI, the example and every consuming app resolve without a lockfile, becausepubspec.lockis gitignored.main(a964853):pub getpicksdartastic_opentelemetry1.1.0-beta.15 withdartastic_opentelemetry_api1.0.0-rc.4. 16 of 19 test files fail to load, with errors such as "The getter 'spanEvents' isn't defined for the type 'APISpan'".flutter analyzestays green on that pair, because it does not analyse a dependency's own sources.^1.0.0-rc.3does not keep rc.4 out. pub selects the API package first and takes the newest, rc.4. It then settles for beta.15, because beta.16 (capped below rc.4) is the one SDK release that cannot sit beside rc.4. So beta.16 existing does not fix a fresh resolve.The cap should be lifted when
dartastic_opentelemetryships a release built on rc.4. A comment inpubspec.yamlsays so.Verification
Run locally with Flutter 3.48.0-0.4.pre, the version
ci.ymlpins, after deleting both lockfiles:flutter pub getin the package and inexample/: both resolvedartastic_opentelemetry1.1.0-beta.16 withdartastic_opentelemetry_api1.0.0-rc.3.dart format --output=none --set-exit-if-changed .: 39 files, 0 changed.flutter analyze: no issues.flutter test: 217 passed, 0 failed. The same suite fails to load 16 files on the rc.4 pair.Not run locally: the Kotlin and Swift jobs of
ci.yml. This change touches no native code.Version effect: a
fix:commit, so release-please proposes a patch on its own. If it merges before the v0.6.0 feature work it is folded into that release's Bug Fixes section.🤖 Generated with Claude Code
https://claude.ai/code/session_01XLy7TiPAxtVjPKEwQ9iwBa
Generated by Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.