tools: rename master to main
This commit is contained in:
@@ -1356,7 +1356,7 @@ CHM_FILE =
|
||||
HHC_LOCATION =
|
||||
|
||||
# The GENERATE_CHI flag controls if a separate .chi index file is generated
|
||||
# (YES) or that it should be included in the master .chm file (NO).
|
||||
# (YES) or that it should be included in the main .chm file (NO).
|
||||
# The default value is: NO.
|
||||
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
|
||||
|
||||
|
||||
@@ -1337,7 +1337,7 @@ CHM_FILE =
|
||||
HHC_LOCATION =
|
||||
|
||||
# The GENERATE_CHI flag controls if a separate .chi index file is generated
|
||||
# (YES) or that it should be included in the master .chm file (NO).
|
||||
# (YES) or that it should be included in the main .chm file (NO).
|
||||
# The default value is: NO.
|
||||
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
|
||||
|
||||
|
||||
@@ -1337,7 +1337,7 @@ CHM_FILE =
|
||||
HHC_LOCATION =
|
||||
|
||||
# The GENERATE_CHI flag controls if a separate .chi index file is generated
|
||||
# (YES) or that it should be included in the master .chm file (NO).
|
||||
# (YES) or that it should be included in the main .chm file (NO).
|
||||
# The default value is: NO.
|
||||
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ COPY or-tools.snk /root/or-tools.snk
|
||||
ENV DOTNET_SNK=/root/or-tools.snk
|
||||
|
||||
ARG SRC_GIT_BRANCH
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-master}
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-main}
|
||||
ARG SRC_GIT_SHA1
|
||||
ENV SRC_GIT_SHA1 ${SRC_GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ COPY or-tools.snk /root/or-tools.snk
|
||||
ENV DOTNET_SNK=/root/or-tools.snk
|
||||
|
||||
ARG SRC_GIT_BRANCH
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-master}
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-main}
|
||||
ARG SRC_GIT_SHA1
|
||||
ENV SRC_GIT_SHA1 ${SRC_GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ COPY or-tools.snk /root/or-tools.snk
|
||||
ENV DOTNET_SNK=/root/or-tools.snk
|
||||
|
||||
ARG SRC_GIT_BRANCH
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-master}
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-main}
|
||||
ARG SRC_GIT_SHA1
|
||||
ENV SRC_GIT_SHA1 ${SRC_GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ COPY or-tools.snk /root/or-tools.snk
|
||||
ENV DOTNET_SNK=/root/or-tools.snk
|
||||
|
||||
ARG SRC_GIT_BRANCH
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-master}
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-main}
|
||||
ARG SRC_GIT_SHA1
|
||||
ENV SRC_GIT_SHA1 ${SRC_GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ COPY or-tools.snk /root/or-tools.snk
|
||||
ENV DOTNET_SNK=/root/or-tools.snk
|
||||
|
||||
ARG SRC_GIT_BRANCH
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-master}
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-main}
|
||||
ARG SRC_GIT_SHA1
|
||||
ENV SRC_GIT_SHA1 ${SRC_GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ COPY or-tools.snk /root/or-tools.snk
|
||||
ENV DOTNET_SNK=/root/or-tools.snk
|
||||
|
||||
ARG SRC_GIT_BRANCH
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-master}
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-main}
|
||||
ARG SRC_GIT_SHA1
|
||||
ENV SRC_GIT_SHA1 ${SRC_GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ COPY or-tools.snk /root/or-tools.snk
|
||||
ENV DOTNET_SNK=/root/or-tools.snk
|
||||
|
||||
ARG SRC_GIT_BRANCH
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-master}
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-main}
|
||||
ARG SRC_GIT_SHA1
|
||||
ENV SRC_GIT_SHA1 ${SRC_GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ COPY or-tools.snk /root/or-tools.snk
|
||||
ENV DOTNET_SNK=/root/or-tools.snk
|
||||
|
||||
ARG SRC_GIT_BRANCH
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-master}
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-main}
|
||||
ARG SRC_GIT_SHA1
|
||||
ENV SRC_GIT_SHA1 ${SRC_GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ COPY or-tools.snk /root/or-tools.snk
|
||||
ENV DOTNET_SNK=/root/or-tools.snk
|
||||
|
||||
ARG SRC_GIT_BRANCH
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-master}
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-main}
|
||||
ARG SRC_GIT_SHA1
|
||||
ENV SRC_GIT_SHA1 ${SRC_GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ COPY or-tools.snk /root/or-tools.snk
|
||||
ENV DOTNET_SNK=/root/or-tools.snk
|
||||
|
||||
ARG SRC_GIT_BRANCH
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-master}
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-main}
|
||||
ARG SRC_GIT_SHA1
|
||||
ENV SRC_GIT_SHA1 ${SRC_GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ COPY or-tools.snk /root/or-tools.snk
|
||||
ENV DOTNET_SNK=/root/or-tools.snk
|
||||
|
||||
ARG SRC_GIT_BRANCH
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-master}
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-main}
|
||||
ARG SRC_GIT_SHA1
|
||||
ENV SRC_GIT_SHA1 ${SRC_GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ COPY or-tools.snk /root/or-tools.snk
|
||||
ENV DOTNET_SNK=/root/or-tools.snk
|
||||
|
||||
ARG SRC_GIT_BRANCH
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-master}
|
||||
ENV SRC_GIT_BRANCH ${SRC_GIT_BRANCH:-main}
|
||||
ARG SRC_GIT_SHA1
|
||||
ENV SRC_GIT_SHA1 ${SRC_GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
FROM minizinc/mznc2021:latest AS env
|
||||
|
||||
ENV SRC_GIT_BRANCH master
|
||||
ENV SRC_GIT_BRANCH main
|
||||
|
||||
ENV TZ=America/Los_Angeles
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
@@ -23,7 +23,7 @@ FROM env AS devel
|
||||
ENV GIT_URL https://github.com/google/or-tools
|
||||
|
||||
ARG GIT_BRANCH
|
||||
ENV GIT_BRANCH ${GIT_BRANCH:-master}
|
||||
ENV GIT_BRANCH ${GIT_BRANCH:-main}
|
||||
ARG GIT_SHA1
|
||||
ENV GIT_SHA1 ${GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ FROM env AS devel
|
||||
ENV GIT_URL https://github.com/google/or-tools
|
||||
|
||||
ARG GIT_BRANCH
|
||||
ENV GIT_BRANCH ${GIT_BRANCH:-master}
|
||||
ENV GIT_BRANCH ${GIT_BRANCH:-main}
|
||||
ARG GIT_SHA1
|
||||
ENV GIT_SHA1 ${GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ FROM env AS devel
|
||||
ENV GIT_URL https://github.com/google/or-tools
|
||||
|
||||
ARG GIT_BRANCH
|
||||
ENV GIT_BRANCH ${GIT_BRANCH:-master}
|
||||
ENV GIT_BRANCH ${GIT_BRANCH:-main}
|
||||
ARG GIT_SHA1
|
||||
ENV GIT_SHA1 ${GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ FROM env AS devel
|
||||
ENV GIT_URL https://github.com/google/or-tools
|
||||
|
||||
ARG GIT_BRANCH
|
||||
ENV GIT_BRANCH ${GIT_BRANCH:-master}
|
||||
ENV GIT_BRANCH ${GIT_BRANCH:-main}
|
||||
ARG GIT_SHA1
|
||||
ENV GIT_SHA1 ${GIT_SHA1:-unknown}
|
||||
|
||||
|
||||
@@ -52,11 +52,11 @@ basename = '# ' + os.path.basename(input_file).replace('.py', '')
|
||||
nbook['cells'].append(v4.new_markdown_cell(source=basename, id='basename'))
|
||||
|
||||
print('Adding link cell...')
|
||||
github_logo = 'https://raw.githubusercontent.com/google/or-tools/master/tools/github_32px.png'
|
||||
github_path = 'https://github.com/google/or-tools/blob/master/' + input_file
|
||||
github_logo = 'https://raw.githubusercontent.com/google/or-tools/main/tools/github_32px.png'
|
||||
github_path = 'https://github.com/google/or-tools/blob/main/' + input_file
|
||||
|
||||
colab_path = 'https://colab.research.google.com/github/google/or-tools/blob/master/' + output_file
|
||||
colab_logo = 'https://raw.githubusercontent.com/google/or-tools/master/tools/colab_32px.png'
|
||||
colab_path = 'https://colab.research.google.com/github/google/or-tools/blob/main/' + output_file
|
||||
colab_logo = 'https://raw.githubusercontent.com/google/or-tools/main/tools/colab_32px.png'
|
||||
link = f'''<table align=\"left\">
|
||||
<td>
|
||||
<a href=\"{colab_path}\"><img src=\"{colab_logo}\"/>Run in Google Colab</a>
|
||||
|
||||
@@ -78,7 +78,7 @@ WORKDIR /root
|
||||
# use ORTOOLS_GIT_SHA1 to modify the command
|
||||
# i.e. avoid docker reusing the cache when new commit is pushed
|
||||
ARG ORTOOLS_GIT_BRANCH
|
||||
ENV ORTOOLS_GIT_BRANCH ${ORTOOLS_GIT_BRANCH:-master}
|
||||
ENV ORTOOLS_GIT_BRANCH ${ORTOOLS_GIT_BRANCH:-main}
|
||||
ARG ORTOOLS_GIT_SHA1
|
||||
ENV ORTOOLS_GIT_SHA1 ${ORTOOLS_GIT_SHA1:-unknown}
|
||||
RUN git clone -b "${ORTOOLS_GIT_BRANCH}" --single-branch https://github.com/google/or-tools \
|
||||
|
||||
Reference in New Issue
Block a user