Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package manager for vendor pull (#768)
* Add dependency to go.mod and update go.sum * add pkg installer * Refactor package handling to support dry run functionality and introduce package types * Refactor local file handling in downloadAndInstall function * Refactor downloadAndInstall function to use a temporary directory for package handling * Enhance model to track failed packages during installation process * Add version field to pkg update success message * Enhance file inclusion/exclusion logic to support patterns and improve logging * improve log * remove repeated call of copyToTarget * Add error handling for unknown package types in downloadAndInstall * Implement vendor model with package management and installation logic * Refactor package handling to use pkgAtmosVendor struct and update related functions * Add support for daemon mode in TUI by conditionally disabling renderer * Add detailed logging for package installation errors in vendor model * Fix index out of bounds errors in vendor model by adding checks before accessing packages * Add nil checks for empty packages in vendor model initialization * Add nil check for os.Stdin in daemon mode TUI rendering logic * Refactor TUI rendering logic to use CheckTTYSupport for better terminal compatibility * Add TTY support check to disable TUI rendering when not available * Refactor CheckTTYSupport to improve TTY detection on Linux and macOS * debug stdout support TTY * Refactor CheckTTYSupport to only check stdin TTY support and simplify rendering options * Suppress log output when TTY support is not available in vendor execution * Remove log output suppression and add TTY support messages for non-interactive mode * Add TTYSupport field to modelAtmosVendorInternal and update logic for non-interactive mode * Refactor modelAtmosVendorInternal to remove TTYSupport field and related logic * Add progress bar to modelAtmosVendorInternal for package installation updates * package pull status when TTY support is unavailable * Enhance TTY support check to include stdout terminal status * Implement non-interactive mode with spinner feedback and remove TTY dependency * Update bubbletea and ansi dependencies to latest versions * Remove vendor_tty.go and update non-interactive mode handling in vendor_utils.go * Fix non-interactive mode handling by adding input option for TTY support check * Refactor TTY support check to only evaluate stdin and update comments for clarity * Add '--everything' flag to vendor pull command and update handling logic * Update atmos.yaml to include '--everything' flag in vendor pull command * Add '--everything' flag to vendor pull command in atmos.yaml * refactor: update vendor component handling and improve error logging * feat: add '--everything' flag to 'atmos vendor pull' command in documentation * refactor: improve TTY support checks and enhance logging messages; add URI validation * refactor: implement context timeout for package download process * chore: remove outdated dependencies from go.sum * refactor: improve error messages and flag validation in ExecuteVendorPullCommand * refactor: update modelVendor return value to indicate completion when no packages are provided * feat: enhance URI validation in `validateURI` function * refactor: improve error handling and logging in vendor operations * fix: update receiver types for modelVendor methods and improve error messages * fix: add validation for invalid characters in URI * refactor: simplify CheckTTYSupport function to only check stdout TTY support * fix: improve pkgType.String method and enhance temp directory creation error handling * fix: enhance error handling for temp directory creation and permissions * fix: add local file check in ExecuteComponentVendorInternal function * fix: add example command for vendor pull in cheatsheet documentation * fix: update vendor pull command example in documentation * fix: update vendor pull command example in cheatsheet documentation * fix: add example command for vendor pull in documentation * fix: simplify vendor pull command example in documentation * some fixes * fix handle the OCI images * fix: improve error handling and logging in vendor update process * fix: correct URI trimming for OCI scheme in determineSourceType function * fix: enhance error messages and improve TTY handling in vendor execution * Enhance error messages and validation in vendor utilities * updates * not emit pulling log on basic output * merge maine into branch resolve conflict * replace path wit filepath pkg * updates --------- Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]> Co-authored-by: aknysh <[email protected]> Co-authored-by: Andriy Knysh <[email protected]>
- Loading branch information