pixi

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractWorkspaceName

func ExtractWorkspaceName(content string) (string, error)

ExtractWorkspaceName reads the workspace name from pixi.toml content. It first looks for [workspace] name, then falls back to [project] name. Returns an error if no name field is found in either section, or if the name is invalid (contains path separators, colons, or is a reserved name).

func InstallPixi

func InstallPixi(ctx context.Context) (string, error)

InstallPixi automatically downloads and installs pixi to ~/.local/bin. Safe to call concurrently; only the first caller does the actual install.

func ValidateWorkspaceName

func ValidateWorkspaceName(name string) error

ValidateWorkspaceName checks that a workspace name is valid for use with nebi. Names must not be empty, contain path separators or colons (which are ambiguous with filesystem paths and server refs), or be reserved names like "." or "..".

Types

type PixiManager

type PixiManager struct {
	// contains filtered or unexported fields
}

PixiManager implements the PackageManager interface for pixi

func New

func New() (*PixiManager, error)

New creates a new PixiManager instance

func NewWithPath

func NewWithPath(customPath string) (*PixiManager, error)

NewWithPath creates a new PixiManager with a custom pixi binary path

func (*PixiManager) BinaryPath

func (p *PixiManager) BinaryPath() string

BinaryPath returns the path to the pixi binary

func (*PixiManager) GetManifest

func (p *PixiManager) GetManifest(ctx context.Context, envPath string) (*pkgmgr.Manifest, error)

GetManifest returns the parsed pixi.toml manifest file

func (*PixiManager) Init

func (p *PixiManager) Init(ctx context.Context, opts pkgmgr.InitOptions) error

Init creates a new pixi environment

func (*PixiManager) Install

func (p *PixiManager) Install(ctx context.Context, opts pkgmgr.InstallOptions) error

Install adds packages to an environment

func (*PixiManager) List

func (p *PixiManager) List(ctx context.Context, opts pkgmgr.ListOptions) ([]pkgmgr.Package, error)

List returns installed packages in an environment

func (*PixiManager) Name

func (p *PixiManager) Name() string

Name returns the package manager name

func (*PixiManager) Remove

func (p *PixiManager) Remove(ctx context.Context, opts pkgmgr.RemoveOptions) error

Remove removes packages from an environment

func (*PixiManager) Update

func (p *PixiManager) Update(ctx context.Context, opts pkgmgr.UpdateOptions) error

Update updates packages in an environment

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL