Skip to content

Commit 8f2d344

Browse files
Fix docker to work for releases. (#86)
1 parent 4d4d917 commit 8f2d344

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,12 @@ RUN \
187187
gh_f_repo_name=${gh_repo_name} && \
188188
h=$(git rev-parse HEAD) && \
189189
echo "Debug: Head h: $h" && \
190-
br=$(git rev-parse --abbrev-ref HEAD) && \
191-
echo "Debug: Branch br: $br" && \
192190
#FIXME: if `$h` is not pushed upstream this fails. We should just diagnose and move on.
193-
#git show-ref --head && echo $? && \
194-
#git show-ref --head | grep "$h" && echo $? && \
195-
#git show-ref --head | grep "$h" | grep -E "remotes|tags" && echo $? && \
196-
#git show-ref --head | grep "$h" | grep -E "remotes|tags" | grep -o '[^/ ]*$' && echo $? && \
197-
#arr1=$(git show-ref --head | grep "$h" | grep -E "remotes|tags" | grep -o '[^/ ]*$') && echo $? && \
198-
arr1=$br && \
191+
git show-ref --head && echo $? && \
192+
git show-ref --head | grep "$h" && echo $? && \
193+
git show-ref --head | grep "$h" | grep -E "remotes|tags" && echo $? && \
194+
git show-ref --head | grep "$h" | grep -E "remotes|tags" | grep -o '[^/ ]*$' && echo $? && \
195+
arr1=$(git show-ref --head | grep "$h" | grep -E "remotes|tags" | grep -o '[^/ ]*$') && echo $? && \
199196
gh_repo_branch="${arr1[*]//\|}" && \
200197
gh_repo_branch_regex=" ${gh_repo_branch//$'\n'/ | } " && \
201198
gh_repo_branch_regex=$(echo "$gh_repo_branch_regex" | sed -e 's/[]\/$*.^[]/\\\\&/g') && \

src/xinterpreter.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ void* createInterpreter(const Args &ExtraArgs = {}) {
4646
}
4747

4848
namespace xcpp {
49-
void interpreter::configure_impl() {}
49+
50+
void interpreter::configure_impl()
51+
{
52+
xeus::register_interpreter(this);
53+
}
54+
5055

5156
interpreter::interpreter(int argc, const char *const *argv)
5257
: // m_input_validator(),

0 commit comments

Comments
 (0)