`apx stacks new` and `apx stacks update` both have a strict limit for packages list
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
Research direction
Start by reproducing the package entry prompts in apx stacks new and apx stacks update with the 183-character package list shown in the issue, then trace where the input length is validated. Done means both commands accept the reported package list without truncating it, while existing package input behavior remains intact.
Written by the indexing model from the issue text.
Description
When I create a stack or update an existed stack, and edit the packages list, I find that the packages list has a strict length limit.
My expected packages list is:
build-essential cmake git rust-all python3 python3-venv python3-dev python3-sympy python3-numpy python3-scipy python3-matplotlib python3-h5py python3-serial libeigen3-dev texlive-full
seperated by space as required, 15 packages, and 183 char in total.
When creating or updating a stack:
lie@apx-vso-native:~$ apx stacks --help
Usage: stacks [flags] [command]
Work with the stacks that are available in apx.
Commands:
export Export the specified stack.
import Import the specified stack.
list List all available stacks.
new Create a new stack.
rm Remove the specified stack.
show Show information about the specified stack.
update Update the specified stack.
lie@apx-vso-native:~$ apx stacks new
Choose a name:
➜ test_demo
Choose a base (e.g. 'vanillaos/pico'):
➜ ubuntu:latest
Select a package manager [1-5]:
1. apk
> 2. apt
3. dnf
4. pacman
5. zypper
↑/k up • ↓/j down • q quit • ? more
You have not provided any packages to install in the stack. Do you want to add some now?
y N
Please type the packages you want to install in the stack, separated by a space:
➜ build-essential cmake git rust-all python3 python3-venv python3-dev python3-sympy python3-numpy python3-scipy python3-matplotlib python3-h5py python3-serial
INF > Created stack 'test_demo'.
lie@apx-vso-native:~$ apx stacks update test_demo
Type a new base or confirm the current one (ubuntu:latest):
➜ ubuntu:latest
Choose a new package manager or confirm the current one (apt):
➜ apt
Do you want to update the list of packages?
-build-essential
- cmake
- git
- rust-all
- python3
- python3-venv
- python3-dev
- python3-sympy
- python3-numpy
- python3-scipy
- python3-matplotlib
- python3-h5py
- python3-serial
y N
Type the packages you want to install in the stack, separated by a space:
➜ build-essential cmake git rust-all python3 python3-venv python3-dev python3-sympy python3-numpy python3-scipy python3-matplotlib python3-h5py python3-serial
INF > Updated stack 'test_demo'.
Only 156 chars allowed.
- Dominant language
- Go
- Stars
- 589
- Forks
- 50
- Avg merge
- 8h 3m
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Vanilla-OS/apx
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Vanilla-OS/apx#514 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Vanilla-OS/apx#509 ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Vanilla-OS/apx#461 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Vanilla-OS/apx#446 · 2 comments · 3 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Vanilla-OS/apx#439 · 2 comments · 3 reactions ·
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100