Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
namenu committed Oct 2, 2023
1 parent b36299e commit 1c3f47a
Showing 1 changed file with 17 additions and 27 deletions.
44 changes: 17 additions & 27 deletions src/namenu/deps_diff.clj
Original file line number Diff line number Diff line change
Expand Up @@ -88,36 +88,26 @@
;; git show e0f4689c07bc652492bf03eba7edac20ab2bee0f:test/resources/base.edn > base.edn
;; clojure -X namenu.deps-diff/diff base.edn deps.edn

(diff {:base "test-resources/base/deps.edn"
:target "test-resources/target/deps.edn"
:aliases [:test]
:format :repl})

(diff {:base "b2a1ca302959b720e703618a912a4b140389ee55" :target "deps.edn"
:format :cli})

(read-edn "HEAD:deps.edn")
(read-edn "HEAD:test/resources/base.edn")

(resolve-deps (read-edn "HEAD:deps.edn") [])
(resolve-deps {:deps {'green-labs/gosura {:git/url "https://github.com/green-labs/gosura"
:git/sha "f1d586669f37a3ca99e14739f9abfb1a02128274"}}
:mvn/repos mvn/standard-repos
}
[])

(make-ver
(s/conform ::spec/coord
{:git/url "https://github.com/green-labs/superlifter.git",
:git/sha "e0df5b36b496c485c75f38052a71b18f02772cc0",
:deps/manifest :deps,
:deps/root "/Users/namenu/.gitlibs/libs/superlifter/superlifter/e0df5b36b496c485c75f38052a71b18f02772cc0",
:dependents ['green-labs/gosura],
:parents #{['green-labs/gosura]},
:paths ["/Users/namenu/.gitlibs/libs/superlifter/superlifter/e0df5b36b496c485c75f38052a71b18f02772cc0/src"]}
))

(defmethod make-output :repl
[diff _]
diff)

(-> (diff {:base "test-resources/base/deps.edn"
:target "test-resources/target/deps.edn"
:aliases [:test]
:format :repl})
))

(s/conform ::spec/coord
{:git/url "https://github.com/green-labs/superlifter.git",
:git/sha "e0df5b36b496c485c75f38052a71b18f02772cc0",
:deps/manifest :deps,
:deps/root "/Users/namenu/.gitlibs/libs/superlifter/superlifter/e0df5b36b496c485c75f38052a71b18f02772cc0",
:dependents ['green-labs/gosura],
:parents #{['green-labs/gosura]},
:paths ["/Users/namenu/.gitlibs/libs/superlifter/superlifter/e0df5b36b496c485c75f38052a71b18f02772cc0/src"]}
)

:test)

0 comments on commit 1c3f47a

Please sign in to comment.