chore: include debug symbols in nightly images#908
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughCentralizes Go linker flags by adding an LDFLAGS variable in the Makefile, introducing ARG LDFLAGS in both Dockerfiles and using it in ChangesLinker Flags Parameterization
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@Dockerfile`:
- Around line 43-46: The go build invocation has a malformed -ldflags
interpolation: replace the stray closing brace in "${LDFLAGS}}" with
"${LDFLAGS}" so the linker flags interpolate correctly; update the RUN lines
that set CGO_ENABLED=0 and call go build (the -ldflags argument and its quoted
multi-line continuation) in both the Dockerfile and Dockerfile.distroless to
remove the extra "}" while preserving the existing -X assignments for
github.com/tinyauthapp/tinyauth/internal/model.Version, CommitHash and
BuildTimestamp.
In `@Dockerfile.distroless`:
- Around line 45-48: The -ldflags expansion in the Docker build RUN line is
malformed: it uses the variable token "${LDFLAGS}}" (extra closing brace) which
injects a stray '}' into the linker flags; fix the build invocation that runs
"go build ... -ldflags ... ./cmd/tinyauth" by correcting the variable to
"${LDFLAGS}" (remove the extra '}') in both Dockerfile.distroless and Dockerfile
so the go linker receives the intended flags alongside the -X flags for
model.Version, model.CommitHash, and model.BuildTimestamp.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 4b20456e-0987-467a-a659-924197b2c923
📒 Files selected for processing (5)
.github/workflows/nightly.yml.github/workflows/release.ymlDockerfileDockerfile.distrolessMakefile
Summary by CodeRabbit