Skip to content

Commit

Permalink
Update pkg_version dynamically before build phases
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin <[email protected]>
  • Loading branch information
Sachin committed Nov 21, 2024
1 parent 062fed7 commit 822548d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion habitat/plan.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pkg_name=fauxhai
pkg_origin=core
pkg_version="9.3.16"
pkg_description="Easily mock full ohai data"
pkg_license=('Apache-2.0')
pkg_deps=(
Expand All @@ -13,6 +12,14 @@ pkg_build_deps=(
)
pkg_bin_dirs=(bin)

pkg_version() {
cat "$SRC_PATH/VERSION"
}

do_before() {
update_pkg_version
}

# Setup environment variables for Ruby Gems
do_setup_environment() {
build_line "Setting up GEM_HOME and GEM_PATH"
Expand Down

0 comments on commit 822548d

Please sign in to comment.