Skip to content

Commit

Permalink
Merge pull request #172 from buildpack/feature/consistent-archive
Browse files Browse the repository at this point in the history
Make lifecycle package's nested directory consistent
  • Loading branch information
sclevine authored Aug 29, 2019
2 parents abab5c1 + d432657 commit 4f14ca2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ all: test build package
build:
@echo "> Building lifecycle..."
mkdir -p ./out/$(ARCHIVE_NAME)
$(GOENV) $(GOBUILD) -o ./out/$(ARCHIVE_NAME)/detector -a ./cmd/detector
$(GOENV) $(GOBUILD) -o ./out/$(ARCHIVE_NAME)/restorer -a ./cmd/restorer
$(GOENV) $(GOBUILD) -o ./out/$(ARCHIVE_NAME)/analyzer -a ./cmd/analyzer
$(GOENV) $(GOBUILD) -o ./out/$(ARCHIVE_NAME)/builder -a ./cmd/builder
$(GOENV) $(GOBUILD) -o ./out/$(ARCHIVE_NAME)/exporter -a ./cmd/exporter
$(GOENV) $(GOBUILD) -o ./out/$(ARCHIVE_NAME)/cacher -a ./cmd/cacher
$(GOENV) $(GOBUILD) -o ./out/$(ARCHIVE_NAME)/launcher -a ./cmd/launcher
$(GOENV) $(GOBUILD) -o ./out/lifecycle/detector -a ./cmd/detector
$(GOENV) $(GOBUILD) -o ./out/lifecycle/restorer -a ./cmd/restorer
$(GOENV) $(GOBUILD) -o ./out/lifecycle/analyzer -a ./cmd/analyzer
$(GOENV) $(GOBUILD) -o ./out/lifecycle/builder -a ./cmd/builder
$(GOENV) $(GOBUILD) -o ./out/lifecycle/exporter -a ./cmd/exporter
$(GOENV) $(GOBUILD) -o ./out/lifecycle/cacher -a ./cmd/cacher
$(GOENV) $(GOBUILD) -o ./out/lifecycle/launcher -a ./cmd/launcher

descriptor: export LIFECYCLE_DESCRIPTOR:=$(LIFECYCLE_DESCRIPTOR)
descriptor:
Expand Down Expand Up @@ -80,4 +80,4 @@ clean:

package: descriptor
@echo "> Packaging lifecycle..."
tar czf ./out/$(ARCHIVE_NAME).tgz -C out $(ARCHIVE_NAME) lifecycle.toml
tar czf ./out/$(ARCHIVE_NAME).tgz -C out lifecycle.toml lifecycle
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $ make all
```
This will create an archive at `out/lifecycle-<LIFECYCLE_VERSION>+linux.x86-64.tgz`.

By default, `LIFECYCLE_VERSION` is `dev`. It can be changed by prepending `LIFECYCLE_VERSION=<some version>` to the
By default, `LIFECYCLE_VERSION` is `0.0.0`. It can be changed by prepending `LIFECYCLE_VERSION=<some version>` to the
`make` command. For example:

```bash
Expand All @@ -58,7 +58,7 @@ $ make test

### Build

Builds binaries to `out/lifecycle-<LIFECYCLE_VERSION>+linux.x86-64/` for the given (or default) `LIFECYCLE_VERSION`.
Builds binaries to `out/lifecycle/`.

```bash
$ make build
Expand All @@ -69,7 +69,7 @@ $ make build
### Package

Creates an archive at `out/lifecycle-<LIFECYCLE_VERSION>+linux.x86-64.tgz`, using the contents of the
`out/lifecycle-<LIFECYCLE_VERSION>+linux.x86-64/` directory, for the given (or default) `LIFECYCLE_VERSION`.
`out/lifecycle/` directory, for the given (or default) `LIFECYCLE_VERSION`.

```bash
$ make package
Expand Down

0 comments on commit 4f14ca2

Please sign in to comment.