-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from dolthub/db/builder
add utility for building doltgres binaries
- Loading branch information
Showing
5 changed files
with
254 additions
and
30 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
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,32 @@ | ||
package main | ||
|
||
import ( | ||
"context" | ||
"fmt" | ||
"log" | ||
"os" | ||
|
||
builder "github.com/dolthub/doltgresql/utils/doltgres_builder" | ||
) | ||
|
||
func main() { | ||
commitList := os.Args[1:] | ||
if len(commitList) < 1 { | ||
helpStr := "doltgres-builder takes DoltgreSQL commit shas or tags as arguments\n" + | ||
"and builds corresponding binaries to a path specified\n" + | ||
"by DOLTGRES_BIN\n" + | ||
"If DOLTGRES_BIN is not set, ./doltgresBin will be used\n" + | ||
"usage: doltgres-builder dccba46 4bad226 ...\n" + | ||
"usage: doltgres-builder v0.19.0 v0.22.6 ...\n" + | ||
"set DEBUG=1 to run in debug mode\n" | ||
fmt.Print(helpStr) | ||
os.Exit(2) | ||
} | ||
|
||
err := builder.Run(context.Background(), commitList) | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
|
||
os.Exit(0) | ||
} |
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,5 @@ | ||
package doltgres_builder | ||
|
||
const ( | ||
GithubDoltgres = "https://github.com/dolthub/doltgresql.git" | ||
) |
Oops, something went wrong.