Skip to content

Commit

Permalink
fix: virtual alias name
Browse files Browse the repository at this point in the history
  • Loading branch information
armed committed Feb 12, 2024
1 parent c83239a commit fef506f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/kmono/src/k16/kmono/repl/deps.clj
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@
[{:keys [package-dirs repo-root]} package-alias]
(let [package-name (or (namespace package-alias) (name package-alias))
package-dir (get package-dirs package-name)
package-dir-parent (fs/file-name (fs/parent package-dir))
alias-key (-> package-alias (name) (keyword))
_ (assert package-name (str "Could not get package from package-alias ["
package-alias "]"))
_ (assert alias-key (str "Could not get alias from package-alias ["
package-alias "]"))
deps-edn (clj.deps/read-deps-edn! package-dir)
alias-name (keyword (str package-dir-parent "/" package-name "." (name alias-key)))]
alias-name (keyword (str "kmono.pkg/" package-name "." (name alias-key)))]
{alias-name (or (relativize-paths
repo-root
package-dir
Expand Down

0 comments on commit fef506f

Please sign in to comment.