Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing digest for m.jar (#8447)
### Problem ``` [ 27/207] Rsc-ing 302 mixed sources in 1 target ('<some target>). rsc(finagle/finagle-core/src/main:main) failed: ClasspathEntry ClasspathEntry(path='<some path>/source/.pants.d/compile/rsc/c1e3836b60e5/finagle.finagle-core.src.main.main/current/rsc/m.jar', directory_digest=None) didn't have a Digest, so won't be present for hermetic ``` The issue is that when we are setting the directory like this ``` ctx.rsc_jar_file = ClasspathEntry(ctx.rsc_jar_file.path, res.output_directory_digest) ``` it creates a new object and assign it to `ctx.rsc_jar_file`, whereas somewhere else in the code still points to the `ClasspathEntry` that `ctx.rsc_jar_file` used to point to. ### Solution Do not create an object, but change its attribute. ### Result RSC does not choke on this anymore.
- Loading branch information