winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
5.05k stars 198 forks source link

Custom `wing.toml` file for `compile`, `run` and `test` #6466

Open eladb opened 6 months ago

eladb commented 6 months ago

Use Case

I am looking for a way to specify a custom name for wing.toml when running wing compile, wing run or wing test.

Proposed Solution

I am not sure I understand from the docs if --values refers to the wing.toml file or some other configuration file.

It is also only supported for wing compile and not respected for wing test.

We need to clean this stuff up because it's getting pretty messy.

Implementation Notes

No response

Component

No response

Community Notes

Chriscbr commented 6 months ago

Rust has a concept of compilation "profiles" that could be interesting to look into. Would it be better if all configuration is in a single wing.toml file? I imagine having a fixed file path might make it easier for other tools to interop / work with Wing projects (in my head, thinking about how package.json, tsconfig.json, pyproject.toml, and Cargo.toml are usually the same name)

github-actions[bot] commented 3 months ago

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!