Skip to content
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

"No such file or directory" for chaotic gen in docker #664

Open
ybairamgalin opened this issue Aug 2, 2024 · 0 comments
Open

"No such file or directory" for chaotic gen in docker #664

ybairamgalin opened this issue Aug 2, 2024 · 0 comments

Comments

@ybairamgalin
Copy link

ybairamgalin commented Aug 2, 2024

Adding these lines of code from docs

include(ChaoticGen)

file(GLOB_RECURSE SCHEMAS ${CMAKE_CURRENT_SOURCE_DIR}/schemas/*.yaml)
userver_target_generate_chaotic(${PROJECT_NAME}-chgen
        ARGS
        # Map '/components/schemas/*' JSONSchema types to C++ types in 'samples::hello' namespace
        -n "/components/schemas/([^/]*)/=samples::hello::{0}"
        -f "(.*)={0}"
        # Don't call clang-format
        --clang-format=
        # Generate serializers for responses
        --generate-serializers
        OUTPUT_DIR
        ${CMAKE_CURRENT_BINARY_DIR}/src
        SCHEMAS
        ${SCHEMAS}
        RELATIVE_TO
        ${CMAKE_CURRENT_SOURCE_DIR}
)
target_link_libraries(${PROJECT_NAME}_objs ${PROJECT_NAME}-chgen)

to the CMakeLists.txt makes docker toolchain build fail with error

CMake Error at /usr/lib/cmake/userver/UserverVenv.cmake:31 (file):
  file failed to open for reading (No such file or directory):

    /usr/lib/cmake/scripts/chaotic/requirements.txt

Looks like requirements.txt file is located at /usr/lib/cmake/userver/chaotic, not /usr/lib/cmake/scripts/chaotic.

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

No branches or pull requests

1 participant