From 64536e65ee5eb15952ec922661b34061f9ccd76e Mon Sep 17 00:00:00 2001
From: Nikolaos Kakouros <nkak@kth.se>
Date: Thu, 28 Jan 2021 19:46:37 +0100
Subject: [PATCH] wip

---
 headstart-core.bash | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/headstart-core.bash b/headstart-core.bash
index 645ccb8..8bb6be5 100644
--- a/headstart-core.bash
+++ b/headstart-core.bash
@@ -63,7 +63,12 @@ declare -x GO_TAB_COMPLETIONS_PATTERN=''
 . "$_GO_USE_MODULES" 'core'
 
 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() {
   local debug=false
-- 
GitLab