[BUG] Unable to access files when useDocker is true and SELinux is enabled
@kay-schecker đang làm issue này rồi.
Từ ngày 9/9/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
🐛 Bug Report:
Describe the bug
The OCI container running the generator is unable to access the input files and output directory when they are in a home directory. The volume parameters are missing the :Z at the end of the parameter to enable access when SELinux is enabled. The build fails because the docker container cannot find the spec file, even though it is properly configured.
Steps to Reproduce
Steps to reproduce the behavior:
- Enable SELinux on your linux workstation
- Check out your project into your home directory.
- Don't override default SELinux tags on your work directory. Leave them marked as
unconfined_u:object_r:user_home_t, or however they are marked by default in your home directory. (Hint: usels -lZ to see the SELinux markings) The markings should NOT mentioncontainer`. This would imply that the whole directory was changed to use container-friendly marking. - Attempt to generate code from an api json file.
- See error. The build should complain that the spec file was not found.
Expected behavior
Code should be generated successfully.
Operation System (please complete the following information):
- OS: RHEL 9
- Version 9.6
Package System (please complete the following information):
- Node v22.12.0
Additional context
The volume mount parameters should have a :Z at the end of the mapping (-v "<source file>:/local/input-spec:Z"). All volume mappings need this parameter.
- Ngôn ngữ chính
- TypeScript
- Star
- 2k
- Fork
- 208
- Merge trung bình
- 7 giờ 12 phút
- Pull request đã merge (30 ngày)
- 6
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenAPITools/openapi-generator-cli
-
[FEATURE] consider using caret ranges instead of pinned exact versions for runtime dependencies Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
bug
OpenAPITools/openapi-generator-cli#1213 · 1 người được giao ·
-
bug
OpenAPITools/openapi-generator-cli#1190 · 1 người được giao ·
-
bug
OpenAPITools/openapi-generator-cli#1138 · 1 bình luận · 1 người được giao ·
-
bug
OpenAPITools/openapi-generator-cli#1094 · 1 bình luận · 1 người được giao ·
Tất cả issue của OpenAPITools/openapi-generator-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
TanStack/tanstack.com#1293 ·