Comments (7)
good catch. Would be willing to send a test that checks this and a PR to fix it?
from rules_scala.
actually, I think I can fix it while I'm looking at it.
from rules_scala.
actually, can you post how you solved this exactly? my attempts are not working with bazel 0.2.3.
I can't create the manifest in the jar. Can you take a look at #55 and share your solution in a PR?
from rules_scala.
oh we're not using 0.2.3 yet. we are still using 0.2.1 right now because 0.2.3 seems like it was just broken. Might move to 0.2.2 soon, though. Let me take a look, though. Basically we're not using "jar" to jar it. Using zip with the -FS option, it definitely keeps the timestamps.
from rules_scala.
0.2.3 broke the scala rule with changes but they have now been fixed.
Can you send a PR to the repo with your change to scala.bzl? Maybe I just
didn't get the right zip flags to make it work.
On Wednesday, May 18, 2016, xynny [email protected] wrote:
oh we're not using 0.2.3 yet. we are using 0.2.1 right now because 0.2.3
seems like it was just broken.—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#53 (comment)
P. Oscar Boykin, Ph.D. | http://twitter.com/posco | http://pobox.com/~boykin
from rules_scala.
so I don't know if i can submit a PR because of the cla thing, but you can see this one i just changed now:
https://github.com/xynny/rules_scala/blob/master/scala/scala.bzl#L141-L147
https://github.com/xynny/rules_scala/blob/master/scala/scala.bzl#L51
Those are the two things that made the hash stick for most of the created jars. For some reason I'm still getting a different hash for HelloLib.jar. the thrift.bzl rule still has the jar command that creates the different hashes, though. Basically we switched to the zip method in all of our rules and now local compile doesn't break cache. I looked into rewriting this in code with the java zip util, too, because you can reset metadata, but since this worked I haven't done it.
from rules_scala.
this was fixed by #55
from rules_scala.
Related Issues (20)
- Upgrade CI tests to use Bazel 6 HOT 2
- rules_scala cause IJ plugin failures with Bazel@HEAD
- Support for specifying test classes and/or test cases when using junit tests HOT 4
- warning: [path] bad path element
- [Scala 2.13.12] Issue with scala.tools.nsc.reporters.Reporter when compiling
- FYI - Discussion for SIP-51: drop 2.13 library forwards binary compatibility
- rules_scala support for JDK 21 HOT 42
- Add add_opens and add_exports support HOT 1
- Scalafmt fails with Build without the bytes HOT 20
- Support Scala 3.3.1
- SemanticdbInfo.plugin_jar should be File not string HOT 2
- coverage creates the offline.jar into same directory for tests with different directories
- Bazel 7 - scala_proto_aspect rule must declare '@@bazel_tools//tools/jdk:toolchain_type' toolchain in order to use java_common HOT 1
- Can't run a bazel executable within bazel on Windows HOT 10
- javacopts order differs from java_library
- strict_deps_mode = error complains about dependencies that aren't referenced HOT 3
- use newer version of scalafmt
- How to set JVM version? rules_scala keeps insisting on using Java 11 HOT 1
- Unreadable test result HOT 2
- test_scala_proto_server test is flaky on MacOS CI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rules_scala.