diff --git a/script/setup/install-runhcs-shim b/script/setup/install-runhcs-shim index 674de52eb..77a07b056 100755 --- a/script/setup/install-runhcs-shim +++ b/script/setup/install-runhcs-shim @@ -14,7 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -: ${RUNHCS_VERSION:="$(grep 'Microsoft/hcsshim ' go.mod | awk '{print $2}')"} +scripts_path="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +: ${RUNHCS_VERSION:="$(cat $scripts_path/runhcs-version)"} : ${RUNHCS_REPO:="https://github.com/Microsoft/hcsshim.git"} : ${HCSSHIM_SRC:=''} : ${DESTDIR:=''} diff --git a/script/setup/runhcs-version b/script/setup/runhcs-version new file mode 100644 index 000000000..bf057dbfd --- /dev/null +++ b/script/setup/runhcs-version @@ -0,0 +1 @@ +v0.10.0