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 timestamp to sources.json repositories #175

Closed
Profpatsch opened this issue Jan 8, 2020 · 3 comments
Closed

Add timestamp to sources.json repositories #175

Profpatsch opened this issue Jan 8, 2020 · 3 comments

Comments

@Profpatsch
Copy link

nix-prefetch-git adds a timestamp to its output, which is very nice when you are skimming a sources file and want to know how old e.g. the nixpkgs version is.

nix-prefetch-git:

{
  "url": "https://github.com/nixos/nixpkgs-channels.git",
  "rev": "9beb0d1ac2ebd6063efbdc4d3631f8ce137bbf90",
  "date": "2020-01-06T05:49:56-05:00",
  "sha256": "1v95779di35qhrz70p2v27kmwm09h8pgh74i1wc72v0zp3bdrf50",
  "fetchSubmodules": false
}

niv:

    "nixpkgs": {
        "branch": "nixos-unstable",
        "description": "A read-only mirror of NixOS/nixpkgs tracking the released channels. Send issues and PRs to",
        "homepage": "https://github.com/NixOS/nixpkgs",
        "owner": "NixOS",
        "repo": "nixpkgs-channels",
        "rev": "e19054ab3cd5b7cc9a01d0efc71c8fe310541065",
        "sha256": "0b92yhkj3pq58svyrx7jp0njhaykwr29079izqn6qs638v8zvhl2",
        "type": "tarball",
        "url": "https://github.com/NixOS/nixpkgs-channels/archive/e19054ab3cd5b7cc9a01d0efc71c8fe310541065.tar.gz",
        "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
    }

The same date field would be nice.

@Profpatsch Profpatsch changed the title Add timestamp to sources.json Add timestamp to sources.json repositories Jan 8, 2020
@nmattia
Copy link
Owner

nmattia commented Jan 8, 2020

@Profpatsch makes sense! This appears to be the same as #111, correct?

edit: assuming that nix-prefetch-git's timestamp is the timestamp of the latest commit

@Profpatsch
Copy link
Author

Timestamp of latest commit makes sense, yes.

@nmattia
Copy link
Owner

nmattia commented Jan 31, 2020

Closing as duplicate of #111

@nmattia nmattia closed this as completed Jan 31, 2020
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

No branches or pull requests

2 participants