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

Allow missing default entry-point in ato.yaml #322

Open
mawildoer opened this issue Apr 27, 2024 · 0 comments
Open

Allow missing default entry-point in ato.yaml #322

mawildoer opened this issue Apr 27, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mawildoer
Copy link
Contributor

mawildoer commented Apr 27, 2024

This would mean you can run a build manually via the CLI as long as the entry-point is provides as an argument.

See

if build_names := build or config.builds.keys():
build_ctxs: list[atopile.config.BuildContext] = [
atopile.config.BuildContext.from_config_name(config, build_name)
for build_name in build_names
]
else:
build_ctxs = [atopile.config.BuildContext.from_config(
"default",
atopile.config.ProjectBuildConfig(),
project_ctx
)]
for build_ctx in build_ctxs:
if entry_addr_override is not None:
build_ctx.entry = entry_addr_override
if target:
build_ctx.targets = list(target)

@mawildoer mawildoer added enhancement New feature or request good first issue Good for newcomers labels Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant