Git Product home page Git Product logo

haxeget's Introduction

haxeget

The easier way to install and manage Haxe compiler versions

Installation

On macOS and Linux, the easiest way to install is to use the meta-installer with this one command

curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/l0go/haxeget/main/meta-install.sh | bash

On Windows and other platforms, you can download the executable from the releases tab and add it to your path.

Usage

# Here is how we would install version 4.3.2 of the compiler
$ haxeget install 4.3.2
$ haxeget use 4.3.2
$ haxe # Can now run haxe and haxelib freely

If needed, we can install another version and switch freely between them with the haxeget use <version> command.

Commands

Command About
Install Installs the specified version of Haxe or Neko. ex: 4.3.3, neko, nightly
Uninstall Uninstalls the specified version
Use Selects the version of Haxe to use
List Lists the installed versions
Rc Installs the version of Haxe specified in .haxerc
Update Updates haxeget to the latest version
Current Outputs the currently used Haxe version

Why Rust?

I wanted to mess with the Rust programming language and this seemed like a decent opportunity. If I had proper hindsight, I would have written it in a better language like Go, Zig, or even godforbid Haxe itself. This gives us the interesting property of not forcing you to have a pre-existing Haxe compiler set up to install Haxe itself.

Alternatives

  • haxe-manager: The original inspiration for this, still a valid option!
  • asdf-haxe: If I was aware that asdf had a Haxe plugin, I would probably just have used that. Writing my own is a lot more entertaining though!

haxeget's People

Contributors

l0go avatar altronmaxx avatar ninjamuffin99 avatar just-feeshy avatar

Stargazers

 avatar TAUFEI avatar Doggo avatar jonnythecoder avatar Eric avatar Kiril Misnikov avatar obi3112 avatar  avatar Datee avatar  avatar Vortex avatar Flainn avatar  avatar Voltangle avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

haxeget's Issues

help with use

im very sorry if this is a really fucking basic thing but i cannot for the life of me understand how to work this
image

Windows Support

Not a windows user myself, but this would probably be very helpful to some people. If you have an interest in working on this, please tell me! I can try to help in any way I can, even if you don't know Rust.

`haxe` in `.haxeget` is inacessible (Windows)

Wanted to try this haxeget project out, running into a few issues which I found a "solution" to.

Used the Cargo method to install haxeget and after installing Haxe 4.3.3 and adding it to PATH variables, the terminal still spewed out an error that there is no such command.

Looking into %HAXEPATH%, it puts the folder as C:\.haxeget\haxe, however, upon trying to open the folder, it says it's an invalid location.

image,

The "fix" to this was setting the %HAXEPATH folder to C:\.haxeget\bin\haxe_20231117191750_de28889.

WindowsTerminal_RxB8TvBCsz

Opened an issue 'cause I'm not sure whether or not I'm doing something wrong or there's something wrong with the way it installs.

"No such file or directory" when running "haxeget install"

[eric@eric-manjaro ~]$ haxeget install 4.3.3
Downloading Haxe 4.3.3
๐ŸŽ‰ Done Downloading!
  [00:00:03] [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ] 9.89 MiB/9.89 MiB (2.77 MiB/s, 0s)The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: 
   0: No such file or directory (os error 2)

Location:
   src/cache_directory.rs:45

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Location: src/install_command.rs:35

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
[eric@eric-manjaro ~]$ RUST_BACKTRACE=full haxeget install 4.3.3
Downloading Haxe 4.3.3
๐ŸŽ‰ Done Downloading!
  [00:00:02] [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ] 9.89 MiB/9.89 MiB (3.73 MiB/s, 0s)The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: 
   0: No such file or directory (os error 2)

Location:
   src/cache_directory.rs:45

  โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” BACKTRACE โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
   1: __libc_start_main<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Location: src/install_command.rs:35

  โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” BACKTRACE โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
   1: __libc_start_main<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
[eric@eric-manjaro ~]$ 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.