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

neil dep upgrade changes git url #235

Open
borkdude opened this issue Jul 30, 2024 · 4 comments
Open

neil dep upgrade changes git url #235

borkdude opened this issue Jul 30, 2024 · 4 comments

Comments

@borkdude
Copy link
Contributor

neil dep upgrade changes the git url, in the following cases:

{babashka/pods {#_#_:local/root "/Users/borkdude/Dropbox/dev/clojure/babashka/babashka.pods"
                            :git/url "https://github.com/babashka/babashka.pods"
                            :git/sha "47e55fe5e728578ff4dbf7d2a2caf00efea87b1e"}}

the git url is changed to github.com/babashka/pods

cognitect/test-runner
             {:git/url "https://github.com/cognitect-labs/test-runner"
              :git/sha "9d36f36ff541dac680a05010e4348c744333f191"}

the git url is changed to github.com/cognitect/test-runner

Suggestion: never change the git url

cc @teodorlu if you're bored :)

@teodorlu
Copy link
Contributor

teodorlu commented Jul 30, 2024

Happy to take this one!

@teodorlu
Copy link
Contributor

teodorlu commented Aug 4, 2024

I may be missing something—in my local testing, neil dep upgrade doesn't seem to change anything for the examples with pods and test-runner.

Any advice?

babashka pods

$ cat deps.edn
{:deps
 {babashka/pods {#_#_:local/root "/Users/borkdude/Dropbox/dev/clojure/babashka/babashka.pods"
                 :git/url "https://github.com/babashka/babashka.pods"
                 :git/sha "47e55fe5e728578ff4dbf7d2a2caf00efea87b1e"}}}
$ neil dep upgrade
$ cat deps.edn 
{:deps
 {babashka/pods {#_#_:local/root "/Users/borkdude/Dropbox/dev/clojure/babashka/babashka.pods"
                 :git/url "https://github.com/babashka/babashka.pods"
                 :git/sha "47e55fe5e728578ff4dbf7d2a2caf00efea87b1e"}}}
$ neil --version
neil 0.3.67
$ brew info neil
==> babashka/brew/neil: stable 0.3.67


Installed
/opt/homebrew/Cellar/neil/0.3.67 (7 files, 85.8KB) *
  Built from source on 2024-08-02 at 20:03:03
From: https://github.com/babashka/homebrew-brew/blob/HEAD/Formula/neil.rb
==> Dependencies
Required: borkdude/brew/babashka ✔
$ neil-dev dep upgrade
$ cat deps.edn 
{:deps
 {babashka/pods {#_#_:local/root "/Users/borkdude/Dropbox/dev/clojure/babashka/babashka.pods"
                 :git/url "https://github.com/babashka/babashka.pods"
                 :git/sha "47e55fe5e728578ff4dbf7d2a2caf00efea87b1e"}}}

cognitect test runner

$ cat deps.edn 
{:deps {cognitect/test-runner
        {:git/url "https://github.com/cognitect-labs/test-runner"
         :git/sha "9d36f36ff541dac680a05010e4348c744333f191"}}}
$ neil dep upgrade          
$ cat deps.edn
{:deps {cognitect/test-runner
        {:git/url "https://github.com/cognitect-labs/test-runner"
         :git/sha "9d36f36ff541dac680a05010e4348c744333f191"}}}
$ neil-dev dep upgrade
$ cat deps.edn        
{:deps {cognitect/test-runner
        {:git/url "https://github.com/cognitect-labs/test-runner"
         :git/sha "9d36f36ff541dac680a05010e4348c744333f191"}}}

@borkdude
Copy link
Contributor Author

borkdude commented Aug 4, 2024

Perhaps this is because neil dep upgrade didn't actually upgrade anything in your last example?
I ran neil dep upgrade on clj-kondo before pinning the test runner, so if you remove :neil/pinned true you should be able to replicate it.

@teodorlu
Copy link
Contributor

teodorlu commented Aug 4, 2024

That was it.

  1. No upgrades -> no git URL changes
  2. Upgrades -> potential unwanted git URL changes.

Thanks!

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