You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/04/04 16:17:00 UTC

[GitHub] [beam] riteshghorse commented on a diff in pull request #17256: [BEAM-5436] Add doc page on Go cross compilation.

riteshghorse commented on code in PR #17256:
URL: https://github.com/apache/beam/pull/17256#discussion_r841917952


##########
website/www/site/content/en/documentation/sdks/go-cross-compilation.md:
##########
@@ -0,0 +1,76 @@
+---
+type: languages
+title: "Go SDK Cross Compilation"
+---
+<!--
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+# Overview
+
+This page contains technical details for users starting Go SDK pipelines on machines that are not using a `linux` operating system, nor an `amd64` architecture.
+
+Go is a statically compiled language.
+To execute a Go binary on a machine, it must be compiled for the matching operating system and processor architecture.
+This has implications for how Go SDK pipelines execute on [workers](/documentation/glossary/#worker).
+
+# Development: using `go run`
+
+When starting your in development pipeline against a remote runner, you can use `go run` from your development environment.
+Tthe Go SDK will cross-compile your pipeline for `linux-amd64`, and use that as the pipeline's worker binary.

Review Comment:
   ```suggestion
   The Go SDK will cross-compile your pipeline for `linux-amd64`, and use that as the pipeline's worker binary.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org