-
Notifications
You must be signed in to change notification settings - Fork 194
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
Why scopt 2.12 tried to download from jitpack.io and failed with 401 Unauthorized? #4806
Comments
As a workaround I've add the following into my pom.xml before the jitpack.io repository: <repository>
<!--
jitpack.io contains invalid entry for scopt dependency that requires authorization.
Say Maven to use Maven Central first
https://github.com/jitpack/jitpack.io/issues/4806
-->
<id>central</id>
<name>Maven Central</name>
<url>https://repo1.maven.org/maven2</url>
</repository> |
Hi 410 Unauthorized is returned when JitPack can't determine whether the project is private or public. If the repository is unreachable then it might be private and requires authentication. |
But why JitPack can't determine the private status of this project? It is definitely public. Also, why it tried to assess the library at that strange path? This dependency come from the <dependency>
<groupId>com.github.scopt</groupId>
<artifactId>scopt_2.12</artifactId>
<version>3.6.0</version>
</dependency> So why JitPack tried to download something other? This seems like an error during collecting dependencies by JitPack builder which turns kaitai-struct-compiler_2.12-0.9.pom<?xml version='1.0' encoding='UTF-8'?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<groupId>io.kaitai</groupId>
<artifactId>kaitai-struct-compiler_2.12</artifactId>
<packaging>jar</packaging>
<description>kaitai-struct-compiler</description>
<version>0.9</version>
<licenses>
<license>
<name>GPL-3.0</name>
<url>https://opensource.org/licenses/GPL-3.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<name>kaitai-struct-compiler</name>
<organization>
<name>io.kaitai</name>
</organization>
<url>http://kaitai.io</url>
<scm>
<connection>scm:git:git://github.com/kaitai-io/kaitai_struct_compiler.git</connection>
<developerConnection>scm:git:ssh://github.com:kaitai-io/kaitai_struct_compiler.git</developerConnection>
<url>http://github.com/kaitai-io/kaitai_struct_compiler/tree/master</url>
</scm>
<developers>
<developer>
<name>Mikhail Yakshin</name>
<email>[email protected]</email>
<organization>Kaitai Project</organization>
<organizationUrl>http://kaitai.io</organizationUrl>
</developer>
</developers>
<dependencies>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.12.4</version>
</dependency>
<dependency>
<groupId>com.github.scopt</groupId>
<artifactId>scopt_2.12</artifactId>
<version>3.6.0</version>
</dependency>
<dependency>
<groupId>com.lihaoyi</groupId>
<artifactId>fastparse_2.12</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.25</version>
</dependency>
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.12</artifactId>
<version>3.0.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project> |
Link to build log from https://jitpack.io
Not sure, what you mean under "from https://jitpack.io", I don't see where I can get some logs on your site. I can provide logs of my build: see this PR
Does the project build on your machine with the same commands (e.g. ./gradlew install) ?
Yes, when I clean up my local maven repository and tried to build the project, I've got the same error:
But I've already have scopt dependency previously downloaded from Maven Central, I guess.
So the question is why maven stops at your node when tries to download dependencies?
Why your repository respond with 401 Unauthorized?
What error are you seeing?
The following error in the GitHub Action (slightly formatted for readability):
Full log: https://github.com/kaitai-io/kaitai_struct_gui/runs/4013092133?check_suite_focus=true
I also save it in case if log by the link becomes unavailable: logs_3.zip
I've also notice strange thing -- the scopt dependency tried to download from the
https://jitpack.io/com/github/scopt/scopt_2/12/root_2.12/3.6.0/root_2.12-3.6.0.pom
. Notice, that the path contains.../scopt_2/12/...
. It seems an error and probably it should be.../scopt_2.12/...
The text was updated successfully, but these errors were encountered: