finos / finos/morphir-rust

Decide on input handling for generate command

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2
Forks
0
Avg merge
5h 15m
Merged PRs (30d)
69

Description

**![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat) Use frontend language when defaulting IR input path**

When no `--input` is provided, the generate command builds the IR path using the *target* language (`resolve_compile_output(..., &target_lang, ...)`). If a user compiles from a different frontend language (e.g., `gleam`) and then generates to another target (e.g., `scala`), the IR is stored under `out//compile/gleam`, but generate will look under `compile/scala` and fail with “IR input path does not exist”. This breaks the default workflow whenever frontend and target differ; the default should be derived from the frontend language in config (or the compile output used by the last compile step), not the backend target.

Useful? React with 👍 / 👎.

_Originally posted by @chatgpt-codex-connector[bot] in https://github.com/finos/morphir-rust/pull/36#discussion_r2724203967_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.