mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 04:30:51 +00:00
Prevent direnv errors when not using nix (#16875)
Right now, if a developer uses `direnv` but does not use `nix`, an error is reported whenever changing into the OpenAPI generator directory: ```console $ cd ~/oss/forks/openapi-generator direnv: loading ~/oss/forks/openapi-generator/.envrc direnv: using flake environment:1270: nix: command not found ``` This uses the `has()` function to check for `nix` to *conditionally* run the `use_flake` function.
This commit is contained in:
parent
ae590c4712
commit
cdbb73aa55