Skip to content

Commit

Permalink
Fix docker to work for releases. (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-penev authored Nov 11, 2024
1 parent 4d4d917 commit 8f2d344
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,12 @@ RUN \
gh_f_repo_name=${gh_repo_name} && \
h=$(git rev-parse HEAD) && \
echo "Debug: Head h: $h" && \
br=$(git rev-parse --abbrev-ref HEAD) && \
echo "Debug: Branch br: $br" && \
#FIXME: if `$h` is not pushed upstream this fails. We should just diagnose and move on.
#git show-ref --head && echo $? && \
#git show-ref --head | grep "$h" && echo $? && \
#git show-ref --head | grep "$h" | grep -E "remotes|tags" && echo $? && \
#git show-ref --head | grep "$h" | grep -E "remotes|tags" | grep -o '[^/ ]*$' && echo $? && \
#arr1=$(git show-ref --head | grep "$h" | grep -E "remotes|tags" | grep -o '[^/ ]*$') && echo $? && \
arr1=$br && \
git show-ref --head && echo $? && \
git show-ref --head | grep "$h" && echo $? && \
git show-ref --head | grep "$h" | grep -E "remotes|tags" && echo $? && \
git show-ref --head | grep "$h" | grep -E "remotes|tags" | grep -o '[^/ ]*$' && echo $? && \
arr1=$(git show-ref --head | grep "$h" | grep -E "remotes|tags" | grep -o '[^/ ]*$') && echo $? && \
gh_repo_branch="${arr1[*]//\|}" && \
gh_repo_branch_regex=" ${gh_repo_branch//$'\n'/ | } " && \
gh_repo_branch_regex=$(echo "$gh_repo_branch_regex" | sed -e 's/[]\/$*.^[]/\\\\&/g') && \
Expand Down
7 changes: 6 additions & 1 deletion src/xinterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ void* createInterpreter(const Args &ExtraArgs = {}) {
}

namespace xcpp {
void interpreter::configure_impl() {}

void interpreter::configure_impl()
{
xeus::register_interpreter(this);
}


interpreter::interpreter(int argc, const char *const *argv)
: // m_input_validator(),
Expand Down

0 comments on commit 8f2d344

Please sign in to comment.