Skip to content

Also expand parameters in lists of strings - #333

Open
hmaarrfk wants to merge 3 commits into
conda:mainfrom
hmaarrfk:expand_list_items_too
Open

Also expand parameters in lists of strings#333
hmaarrfk wants to merge 3 commits into
conda:mainfrom
hmaarrfk:expand_list_items_too

Conversation

@hmaarrfk

Copy link
Copy Markdown

Previously if one had a list of strings, expressions such as {{ PREFIX }} or {{ ENV_NAME }} would not get expanded

  • Add a test

Description

I wanted to write a command that looks like {{ PREFIX }}/bin/my_app-{{ ENV_NAME }}

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@github-project-automation github-project-automation Bot moved this to 🆕 New in 🔎 Review May 17, 2025
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label May 17, 2025
@hmaarrfk
hmaarrfk marked this pull request as ready for review May 17, 2025 21:20
@hmaarrfk
hmaarrfk requested a review from a team as a code owner May 17, 2025 21:20
@hmaarrfk

Copy link
Copy Markdown
Author

Pointers on where to add a test would be appreciated if you want one.
also need to add tests for: #334

@marcoesters

Copy link
Copy Markdown
Contributor

Pointers on where to add a test would be appreciated if you want one. also need to add tests for: #334

tests/test_api.py is probably the best place for those tests.

Comment thread menuinst/platforms/base.py Outdated
@github-actions

Copy link
Copy Markdown

Hi there, thank you for your contribution!

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.

If you would like this pull request to remain open please:

  1. Rebase and verify the changes still work
  2. Leave a comment with the current status

NOTE: If this pull request was closed prematurely, please leave a comment.

Thanks!

@github-actions github-actions Bot added the stale [bot] marked as stale due to inactivity label Jun 26, 2026
@marcoesters

Copy link
Copy Markdown
Contributor

Not stale - this is a helpful addition, it just needs some tests.

hmaarrfk and others added 3 commits June 26, 2026 21:47
Previously if one had a list of strings, expressions such as
{{ PREFIX }} or {{ ENV_NAME }} would not get expanded

- [ ] Add a test
Co-authored-by: jaimergp <jaimergp@users.noreply.github.com>
<details><summary>Claude's draft</summary>

Add `test_render_expands_placeholders_in_lists` covering the new
`Menu.render` behavior: placeholders are now expanded element-wise in
lists and tuples of strings, while non-string items are returned
untouched and scalar strings behave as before.

Resume this Claude session:
```
cd /Users/mark/git/feedstocks/menuinst
claude --resume 6d4c7180-d5eb-4848-baf7-d9c3bded4784
```
</details>
@hmaarrfk
hmaarrfk force-pushed the expand_list_items_too branch from a15d12c to d67aedb Compare June 27, 2026 01:49
@github-actions github-actions Bot added stale::recovered [bot] recovered after being marked as stale and removed stale [bot] marked as stale due to inactivity labels Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed [bot] added once the contributor has signed the CLA stale::recovered [bot] recovered after being marked as stale

Projects

Status: 🆕 New

Development

Successfully merging this pull request may close these issues.

4 participants