Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OS detection and associated errors #2

Closed
2 tasks
natemcintosh opened this issue Apr 27, 2024 · 0 comments · Fixed by #12
Closed
2 tasks

Add OS detection and associated errors #2

natemcintosh opened this issue Apr 27, 2024 · 0 comments · Fixed by #12
Milestone

Comments

@natemcintosh
Copy link
Owner

Goal

Instead of assuming that the tool is being run on Linux, check what the OS actually is, and provide an error if it is not Linux. (Working non-Linux versions could eventually happen).

Context

Currently, duckup simply assumes it is being run Linux, and downloads a Linux binary. It should instead fail on any platforms that are not Linux.

Required features

  • Can detect if OS is macOS or Windows
  • Errors out for mac and Windows (for now)

Specifications

  • An early check of the OS in main()
  • An early failure if not running on Linux

Related documents

@natemcintosh natemcintosh added this to the v0.2.0 milestone Apr 27, 2024
@natemcintosh natemcintosh linked a pull request May 10, 2024 that will close this issue
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 a pull request may close this issue.

1 participant