Skip to content
Snippets Groups Projects
Commit b213814e authored by Nikolaos Kakouros's avatar Nikolaos Kakouros
Browse files

wip

parent 64536e65
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash #!/usr/bin/env bash
# TODO add set -ueo pipefail until stack trace kicks in # TODO add set -ueo pipefail until stack trace kicks in
# Path to the project's root directory
# The code below is not in a function as variables, functions, etc defined here
# and in the sourced files need to be accessible in the global scope.
# Path to the project's root directory
declare -gx PROJECT_DIR declare -gx PROJECT_DIR
# Used for testing # Used for testing
...@@ -63,12 +66,7 @@ declare -x GO_TAB_COMPLETIONS_PATTERN='' ...@@ -63,12 +66,7 @@ declare -x GO_TAB_COMPLETIONS_PATTERN=''
. "$_GO_USE_MODULES" 'core' . "$_GO_USE_MODULES" 'core'
core_get_installed_version core_get_installed_version
core_parse_project_config
if ! [[ "${1-}" == 'core' && "${2-}" == 'bootstrap' ]]; then
core_parse_project_config
# When bootstrapping, the project config does not need to be read, since it is
# create by bootstrap itself.
fi
function headstart() { function headstart() {
local debug=false local debug=false
......
...@@ -61,6 +61,11 @@ function core_check_upgrades() { ...@@ -61,6 +61,11 @@ function core_check_upgrades() {
} }
function core_parse_project_config() { function core_parse_project_config() {
if [[ ! -r "$_HEADSTART_PROJECT_CONFIG" ]]; then
# This will happen if we run 'core bootstrap' and this function gets called.
return
fi
local conf local conf
local value local value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment