-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add support for go 1.23 * add an example using go 1.23 * update docs * fmt * add go 1.23 snapshot
- Loading branch information
1 parent
cd02104
commit 52a58e4
Showing
5 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module hello-world | ||
|
||
go 1.23 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package main | ||
|
||
import "fmt" | ||
|
||
func main() { | ||
fmt.Println("Hello from Go!") | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
source: tests/generate_plan_tests.rs | ||
expression: plan | ||
snapshot_kind: text | ||
--- | ||
{ | ||
"providers": [], | ||
"buildImage": "[build_image]", | ||
"variables": { | ||
"CGO_ENABLED": "0", | ||
"NIXPACKS_METADATA": "go" | ||
}, | ||
"phases": { | ||
"build": { | ||
"name": "build", | ||
"dependsOn": [ | ||
"install", | ||
"setup" | ||
], | ||
"cmds": [ | ||
"go build -o out" | ||
], | ||
"cacheDirectories": [ | ||
"/root/.cache/go-build" | ||
] | ||
}, | ||
"install": { | ||
"name": "install", | ||
"dependsOn": [ | ||
"setup" | ||
], | ||
"cmds": [ | ||
"go mod download" | ||
], | ||
"cacheDirectories": [ | ||
"/root/.cache/go-build" | ||
] | ||
}, | ||
"setup": { | ||
"name": "setup", | ||
"nixPkgs": [ | ||
"go_1_23" | ||
], | ||
"nixOverlays": [], | ||
"nixpkgsArchive": "[archive]" | ||
} | ||
}, | ||
"start": { | ||
"cmd": "./out", | ||
"runImage": "ubuntu:jammy" | ||
} | ||
} |