smartcontractkit / smartcontractkit/chainlink

[DEVEL] Enable cross compilation

Open
#3,596 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement needs votes
Dominant language
Go
Stars
8.2k
Forks
2k
Avg merge
1d 23h
Merged PRs (30d)
202

Description

Description
The Makefile doesn't specify flags to customize the compilation of the binary.
I suggest the addition of $GOOS and $GOARCH to allow cross compilation.

Basic Information

  1. Official Go Documentation the building flags [1]
  2. A blog post on cross compilation [2]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the repository's Makefile and the official Go documentation on build flags. Check how the binary is currently compiled and expose GOOS and GOARCH so callers can customize the target platform. Done means the Makefile supports cross-compilation using those variables.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.