-
-
Notifications
You must be signed in to change notification settings - Fork 287
Remove binary artifacts due to security policy violation #1538
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
Changes from 9 commits
73565eb
87f8849
ec35976
3cc9a0f
63c9569
e90629d
ceea6ff
f667911
cae5ee1
1c41ad8
0cd56e7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,17 @@ | ||
| load("@rules_java//java:defs.bzl", "java_import") | ||
| load("@rules_java//java:defs.bzl", "java_library") | ||
|
|
||
| java_import( | ||
| java_library( | ||
| name = "example_jar1", | ||
| jars = [ | ||
| "example_jar1.jar", | ||
| resources = [ | ||
| "//test/src/main/resources/META-INF/services:org.apache.beam.sdk.io.FileSystemRegistrar", | ||
| ], | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
|
|
||
| java_import( | ||
| java_library( | ||
| name = "example_jar2", | ||
| jars = [ | ||
| "example_jar2.jar", | ||
| resources = [ | ||
| "//test/src/main/resources/META-INF/services:org.apache.beam.sdk.io.FileSystemRegistrar", | ||
| ], | ||
| visibility = ["//visibility:public"], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| org.apache.beam.sdk.extensions.gcp.storage.GcsFileSystemRegistrar | ||
| org.apache.beam.sdk.io.LocalFileSystemRegistrar | ||
| org.apache.beam.sdk.extensions.gcp.storage.GcsFileSystemRegistrar | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| exports_files([ | ||
| "FAKE.DSA", | ||
| "FAKE.RSA", | ||
| ]) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| exports_files([ | ||
| "org.apache.beam.sdk.io.FileSystemRegistrar", | ||
| ]) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| org.apache.beam.sdk.extensions.gcp.storage.GcsFileSystemRegistrar |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| namespace java com.foo.bar.baz | ||
|
|
||
| struct Bar { | ||
| 1: optional string Bar | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| namespace java com.foo.bar.baz | ||
|
|
||
| struct Baz { | ||
| 1: optional string Baz | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| namespace java com.foo.bar.baz | ||
|
|
||
| struct Foo { | ||
| 1: optional string foo | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,19 @@ | ||
| load("@rules_java//java:defs.bzl", "java_library") | ||
| load("//scala:scala.bzl", "scala_test") | ||
|
|
||
| java_library( | ||
| name = "jarWithResources", | ||
| resources = [ | ||
| "//test/src/main/resources/scalarules/test:byes", | ||
| "//test/src/main/resources/scalarules/test:hellos", | ||
| "//test/src/main/resources/scalarules/test:more-byes", | ||
| "//test/src/main/resources/scalarules/test:more-hellos", | ||
| ], | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
|
|
||
| scala_test( | ||
| name = "resource_jars", | ||
| srcs = ["TestResourceJars.scala"], | ||
| resource_jars = ["//test/src/main/resources/scalarules/test:hellos-and-byes.jar"], | ||
| resource_jars = [":jarWithResources"], | ||
mateuszkuta256 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| package scalarules.test.scala_import.generic | ||
|
|
||
| object Generic { | ||
| val foo = "bar" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,3 @@ | ||
| package scalarules.test.scala_import.nl; | ||
|
|
||
| /** | ||
| * This class is packaged in scala_import_never_link.jar | ||
| * | ||
| * <p>The jar file was created with the following steps: | ||
| * | ||
| * <p>- javac ScalaImportNeverLink.java - makdir -p scalarules/test/scala_import/nl - mv | ||
| * ScalaImportNeverLink.class scalarules/test/scala_import/nl - jar cf scala_import_never_link.jar | ||
| * scalarules - rm -fr scalarules ScalaImportNeverLink.class | ||
| * | ||
| * <p>To stage the updated jar: git add -f scala_import_never_link.jar | ||
| */ | ||
| public class ScalaImportNeverLink {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,8 +2,6 @@ load("//thrift:thrift.bzl", "thrift_library") | |
|
|
||
| thrift_library( | ||
| name = "bare_jar_1", | ||
| external_jars = [ | ||
| "bare-thrift-1.jar", | ||
| ], | ||
| srcs = ["//test/src/main/resources/scalarules/test:Bar.thrift"], | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above. Do you know why the second test is needed?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. now I reference .jar directly |
||
| visibility = ["//visibility:public"], | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ thrift_library( | |
|
|
||
| scrooge_scala_import( | ||
| name = "thrift3_import", | ||
| scala_jars = ["thrift3_scrooge.jar"], | ||
| scala_jars = ["//test/src/main/scala/scalarules/test/twitter_scrooge:scrooge3"], | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd like a comment (in the code) here about what's going on. Just by looking at the test is very hard to understand what's going on and how is it being tested.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. kk, hope the comment I added is useful |
||
| thrift_jars = ["libthrift3.jar"], | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| exports_files([ | ||
| "Foo.thrift", | ||
| "Bar.thrift", | ||
| "Baz.thrift", | ||
| ]) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| namespace java com.foo.bar.baz | ||
|
|
||
| struct Bar { | ||
| 1: optional string Bar | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| namespace java com.foo.bar.baz | ||
|
|
||
| struct Baz { | ||
| 1: optional string Baz | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| namespace java com.foo.bar.baz | ||
|
|
||
| struct Foo { | ||
| 1: optional string foo | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.