{"action":"closed","number":520,"pull_request":{"url":"https://api.github.com/repos/goreleaser/goreleaser/pulls/520","id":164150306,"html_url":"https://github.com/goreleaser/goreleaser/pull/520","diff_url":"https://github.com/goreleaser/goreleaser/pull/520.diff","patch_url":"https://github.com/goreleaser/goreleaser/pull/520.patch","issue_url":"https://api.github.com/repos/goreleaser/goreleaser/issues/520","number":520,"state":"closed","locked":false,"title":"Prototype: Multiple language support with Rust","user":{"login":"andygrunwald","id":320064,"avatar_url":"https://avatars3.githubusercontent.com/u/320064?v=4","gravatar_id":"","url":"https://api.github.com/users/andygrunwald","html_url":"https://github.com/andygrunwald","followers_url":"https://api.github.com/users/andygrunwald/followers","following_url":"https://api.github.com/users/andygrunwald/following{/other_user}","gists_url":"https://api.github.com/users/andygrunwald/gists{/gist_id}","starred_url":"https://api.github.com/users/andygrunwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andygrunwald/subscriptions","organizations_url":"https://api.github.com/users/andygrunwald/orgs","repos_url":"https://api.github.com/users/andygrunwald/repos","events_url":"https://api.github.com/users/andygrunwald/events{/privacy}","received_events_url":"https://api.github.com/users/andygrunwald/received_events","type":"User","site_admin":false},"body":"## Types of changes\r\n\r\n* [ ] Bug fix (non-breaking change which fixes an issue)\r\n* [X] New feature (non-breaking change which adds functionality)\r\n* [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n* [X] I have read the **CONTRIBUTING** document.\r\n* [X] `make ci` passes on my machine.\r\n* [X] My change requires a change to the documentation.\r\n* [X] I have updated the documentation accordingly.\r\n* [ ] I have added tests to cover my changes.\r\n\r\n## Why is it useful?\r\n\r\nThis is a prototype version of #496.\r\nThis version is far from complete, but it should start a first discussion or feedback round.\r\nThe feedback round is important to let me / us know if it is useful to put more effort into it or to drop the idea at all.\r\n\r\nThis PR shows how this can be done for Rust.\r\nTesting would be welcomed.\r\n\r\n## What it does?\r\n\r\nIt compiles a rust app with `cargo build` and adds it to the Artifacts.\r\n\r\n## How can you test it?\r\n\r\n1. Install Rust (e.g. via https://rustup.rs/)\r\n2. Kickstart a new project via `cargo new --bin hello`\r\n3. Place a new `.goreleaser.yaml` with this content into the project\r\n```\r\nrust:\r\n- target:\r\n  - x86_64-apple-darwin\r\n  binary: hello\r\n\r\narchive:\r\n  format: tar.gz\r\n  name_template: \"{{ .ProjectName }}_{{ .Version }}_{{ .Os }}\"\r\n```\r\n4. Tag it and release it like every other tool\r\n\r\n## What is missing?\r\n\r\n* [ ] Unit tests\r\n* [ ] Proper testing with other pipes\r\n\r\n## Challenges\r\n\r\n* [ ] Goos, Goarch and Goarm are spreaded accross the codebase and used in a specific way (e.g. for templating). In the Rust context this adds a challenge, because targets are not splitted into the specific parts. They are represented like one string (e.g. `x86_64-apple-darwin` for Mac) known from LLVM\r\n* [ ] Copy / Paste code: Right now we just copied many of the code parts. Reusage would make sense here","created_at":"2018-01-20T23:03:42Z","updated_at":"2018-05-27T23:18:24Z","closed_at":"2018-05-27T23:18:23Z","merged_at":null,"merge_commit_sha":"dfe47e167e378e3de20d60c73964635cad9aef47","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/goreleaser/goreleaser/pulls/520/commits","review_comments_url":"https://api.github.com/repos/goreleaser/goreleaser/pulls/520/comments","review_comment_url":"https://api.github.com/repos/goreleaser/goreleaser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/goreleaser/goreleaser/issues/520/comments","statuses_url":"https://api.github.com/repos/goreleaser/goreleaser/statuses/b717421f28ecc97266b9cc71ed35608b46ca5dd6","head":{"label":"andygrunwald:multiple-languages-496","ref":"multiple-languages-496","sha":"b717421f28ecc97266b9cc71ed35608b46ca5dd6","user":{"login":"andygrunwald","id":320064,"avatar_url":"https://avatars3.githubusercontent.com/u/320064?v=4","gravatar_id":"","url":"https://api.github.com/users/andygrunwald","html_url":"https://github.com/andygrunwald","followers_url":"https://api.github.com/users/andygrunwald/followers","following_url":"https://api.github.com/users/andygrunwald/following{/other_user}","gists_url":"https://api.github.com/users/andygrunwald/gists{/gist_id}","starred_url":"https://api.github.com/users/andygrunwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andygrunwald/subscriptions","organizations_url":"https://api.github.com/users/andygrunwald/orgs","repos_url":"https://api.github.com/users/andygrunwald/repos","events_url":"https://api.github.com/users/andygrunwald/events{/privacy}","received_events_url":"https://api.github.com/users/andygrunwald/received_events","type":"User","site_admin":false},"repo":{"id":118251915,"name":"goreleaser","full_name":"andygrunwald/goreleaser","owner":{"login":"andygrunwald","id":320064,"avatar_url":"https://avatars3.githubusercontent.com/u/320064?v=4","gravatar_id":"","url":"https://api.github.com/users/andygrunwald","html_url":"https://github.com/andygrunwald","followers_url":"https://api.github.com/users/andygrunwald/followers","following_url":"https://api.github.com/users/andygrunwald/following{/other_user}","gists_url":"https://api.github.com/users/andygrunwald/gists{/gist_id}","starred_url":"https://api.github.com/users/andygrunwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andygrunwald/subscriptions","organizations_url":"https://api.github.com/users/andygrunwald/orgs","repos_url":"https://api.github.com/users/andygrunwald/repos","events_url":"https://api.github.com/users/andygrunwald/events{/privacy}","received_events_url":"https://api.github.com/users/andygrunwald/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andygrunwald/goreleaser","description":"Deliver Go binaries as fast and easily as possible","fork":true,"url":"https://api.github.com/repos/andygrunwald/goreleaser","forks_url":"https://api.github.com/repos/andygrunwald/goreleaser/forks","keys_url":"https://api.github.com/repos/andygrunwald/goreleaser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andygrunwald/goreleaser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andygrunwald/goreleaser/teams","hooks_url":"https://api.github.com/repos/andygrunwald/goreleaser/hooks","issue_events_url":"https://api.github.com/repos/andygrunwald/goreleaser/issues/events{/number}","events_url":"https://api.github.com/repos/andygrunwald/goreleaser/events","assignees_url":"https://api.github.com/repos/andygrunwald/goreleaser/assignees{/user}","branches_url":"https://api.github.com/repos/andygrunwald/goreleaser/branches{/branch}","tags_url":"https://api.github.com/repos/andygrunwald/goreleaser/tags","blobs_url":"https://api.github.com/repos/andygrunwald/goreleaser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andygrunwald/goreleaser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andygrunwald/goreleaser/git/refs{/sha}","trees_url":"https://api.github.com/repos/andygrunwald/goreleaser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andygrunwald/goreleaser/statuses/{sha}","languages_url":"https://api.github.com/repos/andygrunwald/goreleaser/languages","stargazers_url":"https://api.github.com/repos/andygrunwald/goreleaser/stargazers","contributors_url":"https://api.github.com/repos/andygrunwald/goreleaser/contributors","subscribers_url":"https://api.github.com/repos/andygrunwald/goreleaser/subscribers","subscription_url":"https://api.github.com/repos/andygrunwald/goreleaser/subscription","commits_url":"https://api.github.com/repos/andygrunwald/goreleaser/commits{/sha}","git_commits_url":"https://api.github.com/repos/andygrunwald/goreleaser/git/commits{/sha}","comments_url":"https://api.github.com/repos/andygrunwald/goreleaser/comments{/number}","issue_comment_url":"https://api.github.com/repos/andygrunwald/goreleaser/issues/comments{/number}","contents_url":"https://api.github.com/repos/andygrunwald/goreleaser/contents/{+path}","compare_url":"https://api.github.com/repos/andygrunwald/goreleaser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andygrunwald/goreleaser/merges","archive_url":"https://api.github.com/repos/andygrunwald/goreleaser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andygrunwald/goreleaser/downloads","issues_url":"https://api.github.com/repos/andygrunwald/goreleaser/issues{/number}","pulls_url":"https://api.github.com/repos/andygrunwald/goreleaser/pulls{/number}","milestones_url":"https://api.github.com/repos/andygrunwald/goreleaser/milestones{/number}","notifications_url":"https://api.github.com/repos/andygrunwald/goreleaser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andygrunwald/goreleaser/labels{/name}","releases_url":"https://api.github.com/repos/andygrunwald/goreleaser/releases{/id}","deployments_url":"https://api.github.com/repos/andygrunwald/goreleaser/deployments","created_at":"2018-01-20T14:51:36Z","updated_at":"2018-04-25T16:22:35Z","pushed_at":"2018-05-06T08:46:57Z","git_url":"git://github.com/andygrunwald/goreleaser.git","ssh_url":"git@github.com:andygrunwald/goreleaser.git","clone_url":"https://github.com/andygrunwald/goreleaser.git","svn_url":"https://github.com/andygrunwald/goreleaser","homepage":"https://goreleaser.com","size":5071,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"goreleaser:master","ref":"master","sha":"4c33e488ba634c5bdf499e959364e8e265083e77","user":{"login":"goreleaser","id":24697112,"avatar_url":"https://avatars1.githubusercontent.com/u/24697112?v=4","gravatar_id":"","url":"https://api.github.com/users/goreleaser","html_url":"https://github.com/goreleaser","followers_url":"https://api.github.com/users/goreleaser/followers","following_url":"https://api.github.com/users/goreleaser/following{/other_user}","gists_url":"https://api.github.com/users/goreleaser/gists{/gist_id}","starred_url":"https://api.github.com/users/goreleaser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goreleaser/subscriptions","organizations_url":"https://api.github.com/users/goreleaser/orgs","repos_url":"https://api.github.com/users/goreleaser/repos","events_url":"https://api.github.com/users/goreleaser/events{/privacy}","received_events_url":"https://api.github.com/users/goreleaser/received_events","type":"Organization","site_admin":false},"repo":{"id":77071454,"name":"goreleaser","full_name":"goreleaser/goreleaser","owner":{"login":"goreleaser","id":24697112,"avatar_url":"https://avatars1.githubusercontent.com/u/24697112?v=4","gravatar_id":"","url":"https://api.github.com/users/goreleaser","html_url":"https://github.com/goreleaser","followers_url":"https://api.github.com/users/goreleaser/followers","following_url":"https://api.github.com/users/goreleaser/following{/other_user}","gists_url":"https://api.github.com/users/goreleaser/gists{/gist_id}","starred_url":"https://api.github.com/users/goreleaser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goreleaser/subscriptions","organizations_url":"https://api.github.com/users/goreleaser/orgs","repos_url":"https://api.github.com/users/goreleaser/repos","events_url":"https://api.github.com/users/goreleaser/events{/privacy}","received_events_url":"https://api.github.com/users/goreleaser/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/goreleaser/goreleaser","description":"Deliver Go binaries as fast and easily as possible","fork":false,"url":"https://api.github.com/repos/goreleaser/goreleaser","forks_url":"https://api.github.com/repos/goreleaser/goreleaser/forks","keys_url":"https://api.github.com/repos/goreleaser/goreleaser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goreleaser/goreleaser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goreleaser/goreleaser/teams","hooks_url":"https://api.github.com/repos/goreleaser/goreleaser/hooks","issue_events_url":"https://api.github.com/repos/goreleaser/goreleaser/issues/events{/number}","events_url":"https://api.github.com/repos/goreleaser/goreleaser/events","assignees_url":"https://api.github.com/repos/goreleaser/goreleaser/assignees{/user}","branches_url":"https://api.github.com/repos/goreleaser/goreleaser/branches{/branch}","tags_url":"https://api.github.com/repos/goreleaser/goreleaser/tags","blobs_url":"https://api.github.com/repos/goreleaser/goreleaser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goreleaser/goreleaser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goreleaser/goreleaser/git/refs{/sha}","trees_url":"https://api.github.com/repos/goreleaser/goreleaser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goreleaser/goreleaser/statuses/{sha}","languages_url":"https://api.github.com/repos/goreleaser/goreleaser/languages","stargazers_url":"https://api.github.com/repos/goreleaser/goreleaser/stargazers","contributors_url":"https://api.github.com/repos/goreleaser/goreleaser/contributors","subscribers_url":"https://api.github.com/repos/goreleaser/goreleaser/subscribers","subscription_url":"https://api.github.com/repos/goreleaser/goreleaser/subscription","commits_url":"https://api.github.com/repos/goreleaser/goreleaser/commits{/sha}","git_commits_url":"https://api.github.com/repos/goreleaser/goreleaser/git/commits{/sha}","comments_url":"https://api.github.com/repos/goreleaser/goreleaser/comments{/number}","issue_comment_url":"https://api.github.com/repos/goreleaser/goreleaser/issues/comments{/number}","contents_url":"https://api.github.com/repos/goreleaser/goreleaser/contents/{+path}","compare_url":"https://api.github.com/repos/goreleaser/goreleaser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goreleaser/goreleaser/merges","archive_url":"https://api.github.com/repos/goreleaser/goreleaser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goreleaser/goreleaser/downloads","issues_url":"https://api.github.com/repos/goreleaser/goreleaser/issues{/number}","pulls_url":"https://api.github.com/repos/goreleaser/goreleaser/pulls{/number}","milestones_url":"https://api.github.com/repos/goreleaser/goreleaser/milestones{/number}","notifications_url":"https://api.github.com/repos/goreleaser/goreleaser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goreleaser/goreleaser/labels{/name}","releases_url":"https://api.github.com/repos/goreleaser/goreleaser/releases{/id}","deployments_url":"https://api.github.com/repos/goreleaser/goreleaser/deployments","created_at":"2016-12-21T17:13:39Z","updated_at":"2018-05-27T23:10:16Z","pushed_at":"2018-05-27T23:10:13Z","git_url":"git://github.com/goreleaser/goreleaser.git","ssh_url":"git@github.com:goreleaser/goreleaser.git","clone_url":"https://github.com/goreleaser/goreleaser.git","svn_url":"https://github.com/goreleaser/goreleaser","homepage":"https://goreleaser.com","size":5087,"stargazers_count":2847,"watchers_count":2847,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":150,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":150,"open_issues":21,"watchers":2847,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/goreleaser/goreleaser/pulls/520"},"html":{"href":"https://github.com/goreleaser/goreleaser/pull/520"},"issue":{"href":"https://api.github.com/repos/goreleaser/goreleaser/issues/520"},"comments":{"href":"https://api.github.com/repos/goreleaser/goreleaser/issues/520/comments"},"review_comments":{"href":"https://api.github.com/repos/goreleaser/goreleaser/pulls/520/comments"},"review_comment":{"href":"https://api.github.com/repos/goreleaser/goreleaser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/goreleaser/goreleaser/pulls/520/commits"},"statuses":{"href":"https://api.github.com/repos/goreleaser/goreleaser/statuses/b717421f28ecc97266b9cc71ed35608b46ca5dd6"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":false,"rebaseable":false,"mergeable_state":"dirty","merged_by":null,"comments":24,"review_comments":3,"maintainer_can_modify":false,"commits":12,"additions":302,"deletions":10,"changed_files":5}}
{"actor":{"display_login":"caarlos0"}}