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

<autogenerated-issue> fh failed to convert repo #118

Open
JeremiahSecrist opened this issue Jun 23, 2024 · 2 comments
Open

<autogenerated-issue> fh failed to convert repo #118

JeremiahSecrist opened this issue Jun 23, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@JeremiahSecrist
Copy link

info

I think the issue lies within using refs/tags being unhandled

command: fh convert

Error

Error: 
   0: flakehub input did not match the expected format of `org/project` or
                      `org/project/version`

code:

inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
    nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
    nixos-generators = {
      url = "github:nix-community/nixos-generators";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    disko = {
      url = "github:nix-community/disko/refs/tags/v1.3.0";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    deploy-rs.url = "github:serokell/deploy-rs";
    agenix = {
      url = "github:ryantm/agenix";
      # inputs.nixpkgs.follows = "nixpkgs";
    };
    authentik-nix = {
      url = "github:nix-community/authentik-nix";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    simple-nixos-mailserver = {
      url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-23.11";
    };
    nixos-anywhere = {
      url = "github:nix-community/nixos-anywhere/refs/tags/1.1.1";
    };
  };

Metadata

key value
version 0.1.10
os nixos
arch x86_64
@cole-h
Copy link
Member

cole-h commented Jun 23, 2024

We could certainly stand to improve our error message there.

One thing I would try is removing the refs/tags/ from the URLs. The github fetcher understands branch names, commit hashes, and tag names in that final segment, so that would at least unblock you for now!

@cole-h cole-h added the bug Something isn't working label Jun 23, 2024
@JeremiahSecrist
Copy link
Author

One thing I would try is removing the refs/tags/ from the URLs. The github fetcher understands branch names, commit hashes, and tag names in that final segment, so that would at least unblock you for now!

That is the issue at hand here for sure. I just thought it would be worth posting! I also just wish it would say which inputs failed and convert the rest as per normal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants