Skip to content

Commit

Permalink
🔥 Remove the usage of version.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz committed Aug 28, 2024
1 parent 19d6f43 commit d25424d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion common/src/app/common/version.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
(:require
[cuerdas.core :as str]))

(def version-re #"^(([A-Za-z]+)\-?)?((\d+)\.(\d+)\.(\d+))(\-?((alpha|prealpha|beta|rc|dev)(\d+)?))?(\-?(\d+))?(\-?g(\w+))$")
(def version-re #"^(([A-Za-z]+)\-?)?((\d+)\.(\d+)\.(\d+))(\-?((RC|DEV)(\d+)?))?(\-?(\d+))?(\-?g(\w+))?$")

(defn parse
[data]
Expand Down
5 changes: 1 addition & 4 deletions manage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@ export DEVENV_IMGNAME="$ORGANIZATION/devenv";
export DEVENV_PNAME="penpotdev";

export CURRENT_USER_ID=$(id -u);
export CURRENT_VERSION=$(cat ./version.txt);
export CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD);
export CURRENT_HASH=$(git rev-parse --short HEAD);
export CURRENT_COMMITS=$(git rev-list --count HEAD)

set -ex

function print-current-version {
echo -n "$CURRENT_VERSION-$CURRENT_COMMITS-g$CURRENT_HASH"
echo -n "$(git describe --tags --match "*.*.*")";
}

function build-devenv {
Expand Down
1 change: 0 additions & 1 deletion version.txt

This file was deleted.

0 comments on commit d25424d

Please sign in to comment.