-
Notifications
You must be signed in to change notification settings - Fork 87
Исправил ошибку сборки EDT 2024+ #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Исправил ошибку сборки EDT 2024+ #77
Conversation
WalkthroughConverted locale ENV declarations in edt/Dockerfile to key=value syntax in both stages. Added a guard to create /etc/1C/1CE/ring-commands.cfg if missing and extended cleanup of /tmp/* accordingly within two RUN steps. Changes
Sequence Diagram(s)Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (2)
edt/Dockerfile (2)
35-37: Good switch to key=value form for ENV.Consistent and idiomatic. Optionally, collapse into a single ENV to reduce layers.
Apply this minimal tidy-up:
-ENV LANG=ru_RU.UTF-8 -ENV LANGUAGE=ru_RU:ru -ENV LC_ALL=ru_RU.UTF-8 +ENV LANG=ru_RU.UTF-8 LANGUAGE=ru_RU:ru LC_ALL=ru_RU.UTF-8
98-100: Same ENV style improvement as above.Consider consolidating into one ENV for a cleaner layer history.
-ENV LANG=ru_RU.UTF-8 -ENV LANGUAGE=ru_RU:ru -ENV LC_ALL=ru_RU.UTF-8 +ENV LANG=ru_RU.UTF-8 LANGUAGE=ru_RU:ru LC_ALL=ru_RU.UTF-8
| /tmp/* \ | ||
| # создадим пустой файл, чтобы не было ошибок на следуюших этапах в случае его отсутствия | ||
| && if [ ! -f /etc/1C/1CE/ring-commands.cfg ]; then touch /etc/1C/1CE/ring-commands.cfg; fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure parent directory exists before touch; fix typo in comment.
If /etc/1C/1CE doesn’t exist in some EDT versions, touch will fail and break the build. Create the directory first. Also correct “следуюших” → “следующих”.
Apply:
- /tmp/* \
- # создадим пустой файл, чтобы не было ошибок на следуюших этапах в случае его отсутствия
- && if [ ! -f /etc/1C/1CE/ring-commands.cfg ]; then touch /etc/1C/1CE/ring-commands.cfg; fi
+ /tmp/* \
+ # создадим пустой файл, чтобы не было ошибок на следующих этапах в случае его отсутствия
+ && mkdir -p /etc/1C/1CE \
+ && if [ ! -f /etc/1C/1CE/ring-commands.cfg ]; then touch /etc/1C/1CE/ring-commands.cfg; fi📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| /tmp/* \ | |
| # создадим пустой файл, чтобы не было ошибок на следуюших этапах в случае его отсутствия | |
| && if [ ! -f /etc/1C/1CE/ring-commands.cfg ]; then touch /etc/1C/1CE/ring-commands.cfg; fi | |
| /tmp/* \ | |
| # создадим пустой файл, чтобы не было ошибок на следующих этапах в случае его отсутствия | |
| && mkdir -p /etc/1C/1CE \ | |
| && if [ ! -f /etc/1C/1CE/ring-commands.cfg ]; then touch /etc/1C/1CE/ring-commands.cfg; fi |
🤖 Prompt for AI Agents
In edt/Dockerfile around lines 74 to 76, the script touches
/etc/1C/1CE/ring-commands.cfg without ensuring its parent directory exists and
the comment contains a typo; update the Dockerfile to first create the directory
if missing (e.g., mkdir -p /etc/1C/1CE) before touching the file, and correct
the comment word “следуюших” to “следующих”.
07b6690
into
firstBitMarksistskaya:feature/first-bit
Ошибка воспроизводится при сборке EDT 2024+.
В случае отсутствия файла
ring-commands.cfgкомандаCOPY --from=installer /etc/1C/1CE/ring-commands.cfg /etc/1C/1CE/ring-commands.cfgвыдает ошибку.Я сделал так, чтобы файл всегда присутствовал.
Summary by CodeRabbit
Bug Fixes
Chores