Skip to content

Conversation

gcurtis
Copy link
Collaborator

@gcurtis gcurtis commented Dec 11, 2024

Remove the feature flag and make the DetSys installer the default.

  • Download the installer directly in case the system doesn't have curl.
  • Expose the auto-install functionality in the public nix package so we can reuse it elsewhere.
  • Remove some checks that were only relevant to the old installer (WSL2 limitations and warnings about root).

The install logic is also now part of an Installer struct to provide some flexibility around what install program is run and when it's downloaded.

type Installer struct{ ... }
	func (i *Installer) Download(ctx context.Context) error
	func (i *Installer) Run(ctx context.Context) error

Base automatically changed from gcurtis/export-nix-version to main December 12, 2024 02:56
Remove the feature flag and make the DetSys installer the default.

- Download the installer directly in case the system doesn't have curl.
- Expose the auto-install functionality in the public nix package so we
  can reuse it elsewhere.
- Remove some checks that were only relevant to the old installer (WSL2
  limitations and warnings about root).

The install logic is also now part of an `Installer` struct to provide
some flexibility around what install program is run and when it's
downloaded.

	type Installer struct{ ... }
		func (i *Installer) Download(ctx context.Context) error
		func (i *Installer) Run(ctx context.Context) error
@gcurtis gcurtis force-pushed the gcurtis/detsys-installer branch from bb23894 to 1c8f791 Compare December 12, 2024 15:59
@gcurtis gcurtis requested review from mikeland73 and savil December 12, 2024 17:04
Copy link
Collaborator

@savil savil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay!

return err
}
spinny := spinner.New(spinner.CharSets[11], 100*time.Millisecond, spinner.WithWriter(writer))
spinny.Suffix = " Downloading the Nix installer..."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: drop the prefix space?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this puts a space between the spinner and the message. I copied what we have for Computing the Devbox environment.

@gcurtis gcurtis merged commit d4325c9 into main Dec 13, 2024
29 checks passed
@gcurtis gcurtis deleted the gcurtis/detsys-installer branch December 13, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants