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

Skip prompts for GitHub username and password #130

Closed
CambodianCoder opened this issue Dec 21, 2021 · 1 comment · Fixed by #168
Closed

Skip prompts for GitHub username and password #130

CambodianCoder opened this issue Dec 21, 2021 · 1 comment · Fixed by #168

Comments

@CambodianCoder
Copy link

I have several private repositories/packages hosted in Nexus listed in my deps.edn file.

I would like to set a flag on the command line to skip checking for a username/password.

Something similar to the following would suffice:

clojure -Sdeps '{:deps {com.github.liquidz/antq {:mvn/version "RELEASE"}}}' -M -m antq.core --skip-authentication

Does this feature already exist? If not, could it be added?

Currently, I have to manually hit enter multiple times to get past all the password prompts.

image

@liquidz
Copy link
Owner

liquidz commented Dec 21, 2021

@CambodianCoder Thanks for your reporting!

Hmm, the cause may be the feature to show diffs between current and latest version. (Prompt from git command)

(str/starts-with? url "https://github.com/")
(let [tags (u.git/tags-by-ls-remote url)
current (first (filter #(str/includes? % version) tags))
latest (or (first (filter #(str/includes? % latest-version) tags))
;; If there isn't a tag for latest version
"head")]

For now, antq refers a <url> under <project> or <scm> in pom.xml.
e.g.

  • antq/pom.xml

    Line 9 in de79d34

    <url>https://github.com/liquidz/antq</url>
  • antq/pom.xml

    Lines 16 to 20 in de79d34

    <scm>
    <url>https://github.com/liquidz/antq</url>
    <connection>scm:git:git://github.com/liquidz/antq.git</connection>
    <developerConnection>scm:git:ssh://git@github.com/liquidz/antq.git</developerConnection>
    </scm>

What is your <url> in pom.xml stored in Nexus?

I can add --no-diff option to skip cheking diffs, but it also skips diffs for public repositories, which doesn't seem to make sense.

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

Successfully merging a pull request may close this issue.

2 participants