- Renamed `cli` package to `fab`; you can now use `GO111MODULE=on go get
github.com/microsoft/fabrikate/cmd/fab@develop` to download the `fab`
binary locally
This commit is contained in:
Evan Louie 2020-11-04 15:04:38 -08:00 коммит произвёл GitHub
Родитель 9650c0e037
Коммит b70f3c3ea1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 30 добавлений и 11 удалений

4
.gitignore поставляемый
Просмотреть файл

@ -18,5 +18,5 @@ helm_repos
.DS_Store
.idea
.vscode
fab
fabrikate
/fab
/fabrikate

Просмотреть файл

@ -25,14 +25,33 @@ with the current set of applied resource manifests in your Kubernetes cluster.
## Installation
You can grab the latest releases from the
[releases page](https://github.com/microsoft/fabrikate/releases) or build the
bleeding edge from source with:
You have a couple options:
### Official Release
Grab the latest releases from the
[releases page](https://github.com/microsoft/fabrikate/releases) and place it
drop it into your `$PATH`.
### Building From Source
You have a couple options to build from source:
**Using `go get`:**
Use `go get` to build and install the bleeding edge (i.e `develop`) version into
`$GOPATH/bin`:
```bash
(cd && GO111MODULE=on go get github.com/microsoft/fabrikate/cmd/fab@develop)
```
**Cloning locally:**
```bash
git clone https://github.com/microsoft/fabrikate
cd fabrikate
go build -o fab cmd/cli/main.go
go build -o fab cmd/fab/main.go
```
## Getting Started

Просмотреть файл

Просмотреть файл

@ -30,7 +30,7 @@ var versionCmd = &cobra.Command{
// PrintVersion prints the current version of Fabrikate being used.
func PrintVersion() {
logger.Info("fab version 1.0.0-alpha0")
logger.Info("fab version 1.0.0-alpha1")
}
func init() {

Просмотреть файл

@ -43,8 +43,8 @@ if [ $1 == "build" ]; then
# build fabrikate
if [ $2 == "fab" ]; then
get-deps
echo "go build -o fab cmd/cli/main.go"
go build -o fab cmd/cli/main.go
echo "go build -o fab cmd/fab/main.go"
go build -o fab cmd/fab/main.go
echo "finished building fab"
fi
@ -61,11 +61,11 @@ if [ $1 == "build" ]; then
mkdir -p releases/$3
echo "Building for Mac"
GOOS=darwin GOARCH=amd64 go build -o fab
GOOS=darwin GOARCH=amd64 go build -o fab cmd/fab/main.go
zip releases/$3/fab-v$3-darwin-amd64.zip fab
echo "Building for Linux"
GOOS=linux GOARCH=amd64 go build -o fab
GOOS=linux GOARCH=amd64 go build -o fab cmd/fab/main.go
zip releases/$3/fab-v$3-linux-amd64.zip fab
echo "Release zip files can be found in releases/$3"