poetry2nix
poetry2nix copied to clipboard
'refname is ambiguous' warning while installing Python library using git commit
$ nix-shell
warning: refname '8cd3b80c5e705fcaba82bd8317b26ccf41ef18ce' is ambiguous.
Git normally never creates a ref that ends with 40 hex characters
because it will be ignored when you just specify 40-hex. These refs
may be created by mistake. For example,
git switch -c $br $(git rev-parse ...)
where "$br" is somehow empty and a 40-hex ref is created. Please
examine these refs and maybe delete them. Turn this message off by
running "git config advice.objectNameWarning false"
This warning doesn't occur while using poetry.
Details of library Url: https://github.com/niteoweb/libcloud commit: 8cd3b80c5e705fcaba82bd8317b26ccf41ef18ce
pyproject.toml:
apache-libcloud = {git = "https://github.com/niteoweb/libcloud", tag = "v0.16.0"}
poetry.lock
[[package]]
category = "main"
description = "A standard Python library that abstracts away differences among multiple cloud provider APIs. For more information and documentation, please see http://libcloud.apache.org"
name = "apache-libcloud"
optional = false
python-versions = "*"
version = "1.0.0rc2"
[package.source]
reference = "8cd3b80c5e705fcaba82bd8317b26ccf41ef18ce"
type = "git"
url = "https://github.com/niteoweb/libcloud"
[metadata.files]
apache-libcloud = []
default.nix
let
pkgs = import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/29b450fd8bc9b3d60c2410772e61da94cc080bd4.tar.gz";
sha256 = "12i3926j2387ch8nna77af4jw3kri1rkc2d3m2y54vmcjryrsjs7";
}) {};
poetry2nix = import (fetchTarball {
url = "https://github.com/nix-community/poetry2nix/archive/9cc728836f3ff1dbdb79edc85308cbeaf1313815.tar.gz";
sha256 = "0s8k8rw2whvnyci8vbc3lfmqfzxvb5827y2imy7ibw5l0gp7pm95";
}) {
pkgs = pkgs;
poetry = pkgs.poetry;
};
devEnv = poetry2nix.mkPoetryEnv {
projectDir = ./.;
};
in pkgs.mkShell {
buildInputs = [ devEnv ];
}
CC @Infinisil