{"action":"opened","issue":{"url":"https://api.github.com/repos/wryun/rjsone/issues/12","repository_url":"https://api.github.com/repos/wryun/rjsone","labels_url":"https://api.github.com/repos/wryun/rjsone/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/wryun/rjsone/issues/12/comments","events_url":"https://api.github.com/repos/wryun/rjsone/issues/12/events","html_url":"https://github.com/wryun/rjsone/issues/12","id":339406702,"node_id":"MDU6SXNzdWUzMzk0MDY3MDI=","number":12,"title":"Support plain \"key value\" input files","user":{"login":"ash2k","id":126021,"node_id":"MDQ6VXNlcjEyNjAyMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/126021?v=4","gravatar_id":"","url":"https://api.github.com/users/ash2k","html_url":"https://github.com/ash2k","followers_url":"https://api.github.com/users/ash2k/followers","following_url":"https://api.github.com/users/ash2k/following{/other_user}","gists_url":"https://api.github.com/users/ash2k/gists{/gist_id}","starred_url":"https://api.github.com/users/ash2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ash2k/subscriptions","organizations_url":"https://api.github.com/users/ash2k/orgs","repos_url":"https://api.github.com/users/ash2k/repos","events_url":"https://api.github.com/users/ash2k/events{/privacy}","received_events_url":"https://api.github.com/users/ash2k/received_events","type":"User","site_admin":false},"labels":[{"id":898947028,"node_id":"MDU6TGFiZWw4OTg5NDcwMjg=","url":"https://api.github.com/repos/wryun/rjsone/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-09T11:14:07Z","updated_at":"2018-07-09T11:14:07Z","closed_at":null,"author_association":"COLLABORATOR","body":"Would be useful to support files of the following format:\r\n```\r\nkey1 value1\r\nkey2 some value 2\r\nkey3 42\r\n```\r\nInterpreted as if it was this YAML (see the first link for details):\r\n```yaml\r\nkey1: \"value1\"\r\nkey2: \"some value 2\"\r\nkey3: \"42\"\r\n```\r\nThis is the format produced by \"workplace status\" commands - see [`--workspace_status_command program`](https://docs.bazel.build/versions/master/user-manual.html#flag--workspace_status_command). Key/value pairs then can be consumed by Bazel rules, typically for stamping (introducing controlled non-determinism into the build). Typical example is putting git commit sha into a docker image tag (see `stamp` in [`container_push`](https://github.com/bazelbuild/rules_docker#container_push-1) in rules_docker), etc.\r\n\r\nI'd like to add stamping support to rjsone rule for bazel (https://github.com/atlassian/bazel-tools/issues/12) and I have two options:\r\n- write a helper program that translates the stamping format into yaml/json so that rjsone, invoked from the rule, can consume it as an additional context.\r\n- modify rjsone to support this format so that rjsone rule can just pass the file(s), produced by some workspace status command, as additional contexts.\r\n\r\nThis issue is about the later approach. It may be a new flag for files in this formats or some modifier to existing flags. WDYT?"}}
{"actor":{"display_login":"ash2k"}}