Skip to content

0.47.0

Latest
Compare
Choose a tag to compare
@MHendricks MHendricks released this 24 Jan 23:20

What's Changed

  • Add Platform.normalize_path to ensure standard path strings by @MHendricks in #111
  • WinPlatform.normalize_path no longer changes the UNC drive case by @MHendricks in #113
  • Add hab install to download and install required distros by @MHendricks in #112

Full Changelog: 0.46.0...0.47.0

Adds the ability to resolve URI's and download and install any missing distros using a new cli command similar to pip install.
Example: hab install -u a/uri -u another/uri

The readme still needs updated but this example site file shows the basics of configuring hab install.

{
    "set": {
        "config_paths": [
            "{relative_root}/configs"
        ],
        "distro_paths": [
            "{relative_root}/distros/*"
        ],
        "downloads": {
            "cache_root": "{relative_root}/downloads",
            "distros": [
                [
                    "hab.distro_finders.s3_zip:DistroFinderS3Zip",
                    "s3://bucket-name/hab_distros",
                    {
                        "profile_name": "aws-credential-name"
                    }
                ]
            ],
            "install_root": "{relative_root}/distros"
        }
    }
}