Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

java_binary: manifest_file rejects target name as input #126

Closed
davido opened this issue May 30, 2014 · 3 comments
Closed

java_binary: manifest_file rejects target name as input #126

davido opened this issue May 30, 2014 · 3 comments

Comments

@davido
Copy link
Contributor

davido commented May 30, 2014

Nothing is more disappointing than unfulfilled expectations:

genrule(
  name = 'manifest',
  cmd = 'echo "foo: bar" > $OUT',
  out = 'MANIFEST.MF',
)

java_binary(
  name = 'app',
  main_class = 'please.fix.Me',
  manifest_file = ':manifest',
  deps = [':manifest'],
)

fails here on most recent master:

$ buck build //:app
Using buckd.
[-] PARSING BUILD FILES...FINISHED 0,1s
[+] BUILDING...0,0s
java.lang.RuntimeException: Failed to coerce field named: manifestFile, Not an ordinary file: ':manifest'.
    at com.facebook.buck.rules.ParamInfo.set(ParamInfo.java:130)
[...]
@shs96c
Copy link
Contributor

shs96c commented May 30, 2014

I've a diff out for review on this. Will update this issue once it's bee okayed.

@shs96c
Copy link
Contributor

shs96c commented Jun 5, 2014

Fixed in 1ac479f

@shs96c shs96c closed this as completed Jun 5, 2014
@davido
Copy link
Contributor Author

davido commented Jun 5, 2014

@shs96c Thanks! You forgot to mention this issue in the commit message ;-)

openstack-gerrit pushed a commit to openstack-infra/gerrit that referenced this issue Jun 11, 2014
Number of bugs were fixed in recent Buck version:

* java_binary: manifest_file rejects target name as input [1]
* java_binary: optionally suppress manifest merging from dependent
JARs [2]
* java_library(): changing deps to provided_deps doesn't trigger
library rebuild [3]
* genrule: Make deps to $(exe :foo) and $(location :bar) implicitly
[4]

[1] facebook/buck#126
[2] facebook/buck#87
[3] facebook/buck#133
[4] facebook/buck#128

Change-Id: I8fb9f57676eac242b54892a50d90773bfc5cb0c0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants