Add basic Golang Makefile with test, run, build, and release targets#1
Draft
Add basic Golang Makefile with test, run, build, and release targets#1
Conversation
Co-authored-by: Johnny1110 <32870491+Johnny1110@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] build basic golang makefile, I need test, run, build, release
Add basic Golang Makefile with test, run, build, and release targets
Sep 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements a comprehensive Golang build system for the futures_engine project with the requested Makefile targets.
What's Added
Core Makefile Targets
make test- Runs all tests with verbose outputmake run- Runs the application directly without buildingmake build- Builds a single binary for the current platformmake release- Creates cross-platform release builds for:Additional Development Targets
make test-coverage- Generates test coverage reportsmake clean- Removes build artifactsmake deps- Installs and tidies dependenciesmake fmt- Formats Go codemake lint- Lints code (uses golangci-lint if available, falls back to go vet)make check- Runs format, lint, and test in sequencemake dev- Development mode with file watching (if air is installed)make help- Shows all available targetsProject Structure
Since this was a fresh repository, I've also added:
go.mod)main.go) with a futures engine frameworkmain_test.go) to validate the build system.gitignoreto exclude build artifactsUsage Examples
The Makefile uses semantic versioning from git tags and includes proper LDFLAGS for version injection into the binary.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.