From 1e74ebf413758a19ff550424168dc7387411f64d Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 15 Mar 2023 15:01:05 -0500 Subject: [PATCH] fix: make repo-based install version dependent by default --- Makefile | 1 + README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7f01b33..47019d4 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ types: ## run mypy bump-version: ## update version and tag commit @echo "bumping to version => $(VERSION)" @sed -i 's/__version__ = ".*"/__version__ = "$(VERSION)"/g' src/viv/viv.py + @sed 's/--branch .* g/--branch $(VERSION) g/g' README.md @git add src/viv/viv.py && git commit -m "chore: bump version" @git tag v$(VERSION) diff --git a/README.md b/README.md index f4a80f3..9803fd9 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ By default it will symlink `./src/viv/viv.py` to `~/bin/viv`. You can set `PREFIX` to symlink to a different location. ```sh -git clone git@github.com:daylinmorgan/viv.git ~/.viv +git clone --depth 1 --branch v22.12a3 git@github.com:daylinmorgan/viv.git ~/.viv cd ~/.viv make install # or PREFIX=~/.local/bin make install ```