Skip to content

refactor: batch operations and migrate to Odin 2026.05 APIs#157

Merged
AmarBego merged 1 commit into
mainfrom
feat/migrate-to-2025.06-odin
May 4, 2026
Merged

refactor: batch operations and migrate to Odin 2026.05 APIs#157
AmarBego merged 1 commit into
mainfrom
feat/migrate-to-2025.06-odin

Conversation

@AmarBego

@AmarBego AmarBego commented May 4, 2026

Copy link
Copy Markdown
Member

Batch package operations to avoid repetitive per-package prompts:

  • install: resolve all targets in a single resolution / transaction / prompt
  • remove: pass all packages to one xbps-remove call for proper dep ordering
  • update: group VUP upgrades by repo, skip per-package prompts after batch review
  • transaction: group installs and removes by type+repo for single xbps calls
  • xbps: add plural install/upgrade-from-repo variants accepting []string

Migrate to Odin 2026.05 APIs (no :os calls, updated signatures):

  • make([]dynamic) -> [dynamic; N] inline array declarations
  • os.read_entire_file / write_entire_file: use nil error checks
  • os.make_directory + recursive logic -> os.make_directory_all
  • fi.is_dir -> fi.type == .Directory, os.open returns (handle, err)
  • remove unused core:io, core:os imports and parent_dir helper
  • add vuru src install subcommand with host_install_pkg

Batch package operations to avoid repetitive per-package prompts:
- install: resolve all targets in a single resolution / transaction / prompt
- remove: pass all packages to one xbps-remove call for proper dep ordering
- update: group VUP upgrades by repo, skip per-package prompts after batch review
- transaction: group installs and removes by type+repo for single xbps calls
- xbps: add plural install/upgrade-from-repo variants accepting []string

Migrate to Odin 2026.05 APIs (no :os calls, updated signatures):
- make([]dynamic) -> [dynamic; N] inline array declarations
- os.read_entire_file / write_entire_file: use nil error checks
- os.make_directory + recursive logic -> os.make_directory_all
- fi.is_dir -> fi.type == .Directory, os.open returns (handle, err)
- remove unused core:io, core:os imports and parent_dir helper
- add vuru src install subcommand with host_install_pkg
@AmarBego AmarBego merged commit 5bdd6dc into main May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant