Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

LinkageCheckerMain shows duplicate causes

Offen
#1,945 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
java
Bereich
tooling

Rechercherichtung

Beginne bei LinkageCheckerMain.java:76 und reproduziere die doppelte Ausgabe von "Dependency conflict" anhand des Beam-Beispiels und des verlinkten Gists. Verfolge, wie Ursachen gesammelt oder dargestellt werden, und überprüfe anschließend, dass jeder Linkage-Fehler den Konflikt nur einmal meldet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug p2

When running LinkageCheckerMain for Beam, https://gist.github.com/suztomo/0ba02d93aa0b2f5d9701c50f7d7fd81f had duplicate "Dependency conflict" cause for one linkage error. For example:

Class com.google.pubsub.v1.DeleteSchemaRequest is not found;
Exception in thread "main"   referenced by 2 class files
    com.google.cloud.pubsub.v1.stub.GrpcSchemaServiceStub (com.google.cloud:google-cloud-pubsub:1.111.0)
    com.google.cloud.pubsub.v1.SchemaServiceClient (com.google.cloud:google-cloud-pubsub:1.111.0)
  Cause:
    Dependency conflict: com.google.api.grpc:proto-google-cloud-pubsub-v1:1.90.3 does not define Class com.google.pubsub.v1.DeleteSchemaRequest but com.google.api.grpc:proto-google-cloud-pubsub-v1:1.93.0 defines it.
      selected: org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.29.0-SNAPSHOT / com.google.api.grpc:proto-google-cloud-pubsub-v1:1.90.3 (compile)
      unselected: org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.29.0-SNAPSHOT / com.google.cloud:google-cloud-pubsub:1.111.0 (compile) / com.google.api.grpc:proto-google-cloud-pubsub-v1:1.93.0 (compile)
    Dependency conflict: com.google.api.grpc:proto-google-cloud-pubsub-v1:1.90.3 does not define Class com.google.pubsub.v1.DeleteSchemaRequest but com.google.api.grpc:proto-google-cloud-pubsub-v1:1.93.0 defines it.
      selected: org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.29.0-SNAPSHOT / com.google.api.grpc:proto-google-cloud-pubsub-v1:1.90.3 (compile)
      unselected: org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.29.0-SNAPSHOT / com.google.cloud:google-cloud-pubsub:1.111.0 (compile) / com.google.api.grpc:proto-google-cloud-pubsub-v1:1.93.0 (compile)

and

Class com.google.pubsub.v1.ListSchemasResponse is not found;
  referenced by 3 class files
        at com.google.cloud.tools.opensource.classpath.LinkageCheckerMain.main(LinkageCheckerMain.java:76)
    com.google.cloud.pubsub.v1.stub.SchemaServiceStubSettings (com.google.cloud:google-cloud-pubsub:1.111.0)
    com.google.cloud.pubsub.v1.stub.GrpcSchemaServiceStub (com.google.cloud:google-cloud-pubsub:1.111.0)
    com.google.cloud.pubsub.v1.SchemaServiceClient (com.google.cloud:google-cloud-pubsub:1.111.0)
  Cause:
    Dependency conflict: com.google.api.grpc:proto-google-cloud-pubsub-v1:1.90.3 does not define Class com.google.pubsub.v1.ListSchemasResponse but com.google.api.grpc:proto-google-cloud-pubsub-v1:1.93.0 defines it.
      selected: org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.29.0-SNAPSHOT / com.google.api.grpc:proto-google-cloud-pubsub-v1:1.90.3 (compile)
      unselected: org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.29.0-SNAPSHOT / com.google.cloud:google-cloud-pubsub:1.111.0 (compile) / com.google.api.grpc:proto-google-cloud-pubsub-v1:1.93.0 (compile)
    Dependency conflict: com.google.api.grpc:proto-google-cloud-pubsub-v1:1.90.3 does not define Class com.google.pubsub.v1.ListSchemasResponse but com.google.api.grpc:proto-google-cloud-pubsub-v1:1.93.0 defines it.
      selected: org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.29.0-SNAPSHOT / com.google.api.grpc:proto-google-cloud-pubsub-v1:1.90.3 (compile)
      unselected: org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.29.0-SNAPSHOT / com.google.cloud:google-cloud-pubsub:1.111.0 (compile) / com.google.api.grpc:proto-google-cloud-pubsub-v1:1.93.0 (compile)
    Dependency conflict: com.google.api.grpc:proto-google-cloud-pubsub-v1:1.90.3 does not define Class com.google.pubsub.v1.ListSchemasResponse but com.google.api.grpc:proto-google-cloud-pubsub-v1:1.93.0 defines it.
      selected: org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.29.0-SNAPSHOT / com.google.api.grpc:proto-google-cloud-pubsub-v1:1.90.3 (compile)
      unselected: org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.29.0-SNAPSHOT / com.google.cloud:google-cloud-pubsub:1.111.0 (compile) / com.google.api.grpc:proto-google-cloud-pubsub-v1:1.93.0 (compile)
Vorherrschende Sprache
Java
Sterne
163
Forks
81
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus GoogleCloudPlatform/cloud-opensource-java

Alle Issues in GoogleCloudPlatform/cloud-opensource-java

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.