From 24197ec56e0bb0c900f1046e63e50799deb23641 Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 13 Mar 2023 19:28:36 -0400 Subject: [PATCH] add test for fetching a specific revision --- tests/cmd/rev.stdout | 6 ++++++ tests/cmd/rev.toml | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 tests/cmd/rev.stdout create mode 100644 tests/cmd/rev.toml diff --git a/tests/cmd/rev.stdout b/tests/cmd/rev.stdout new file mode 100644 index 0000000..aba329b --- /dev/null +++ b/tests/cmd/rev.stdout @@ -0,0 +1,6 @@ +fetchFromGitHub { + owner = "nix-community"; + repo = "nurl"; + rev = "7d7ed2f239f2c77e26a724d7c786e8079407c767"; + hash = "sha256-TtH0sfWFWe3oYK/8jJslqjrEY5rR7HGAVDD5iQ2+spY="; +} \ No newline at end of file diff --git a/tests/cmd/rev.toml b/tests/cmd/rev.toml new file mode 100644 index 0000000..d90f3c9 --- /dev/null +++ b/tests/cmd/rev.toml @@ -0,0 +1,4 @@ +args = [ + "https://github.com/nix-community/nurl", + "7d7ed2f239f2c77e26a724d7c786e8079407c767", +]