Skip to content

Commit 2780d84

Browse files
committed
Set up legacy branch, add that this version is no longer maintained
1 parent 8839e87 commit 2780d84

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# NOTE: This installs the BAPCtools version from the GitHub master branch.
1+
# NOTE: This installs the BAPCtools version from the GitHub legacy branch.
22
FROM archlinux:latest
33
MAINTAINER ragnar.grootkoerkamp@gmail.com
44

@@ -37,7 +37,7 @@ RUN pacman -Syu --noconfirm \
3737
cue \
3838
&& pacman -Scc --noconfirm
3939

40-
RUN git clone https://github.com/RagnarGrootKoerkamp/BAPCtools /opt/bapctools && \
40+
RUN git clone https://github.com/RagnarGrootKoerkamp/BAPCtools /opt/bapctools --branch legacy && \
4141
ln -sfn /opt/bapctools/bin/tools.py /usr/bin/bt && ln -sfn /opt/bapctools/third_party/checktestdata /usr/bin/checktestdata
4242

4343
RUN mkdir /data

doc/commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ image: bapctools
418418
419419
default:
420420
before_script:
421-
- git -C /cache/BAPCtools pull || git clone https://github.com/RagnarGrootKoerkamp/BAPCtools.git /cache/BAPCtools
421+
- git -C /cache/BAPCtools pull || git clone https://github.com/RagnarGrootKoerkamp/BAPCtools.git /cache/BAPCtools --branch legacy
422422
- ln -s /cache/BAPCtools/bin/tools.py bt
423423
424424
contest_pdf_nwerc2020:

readme.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,16 @@ time since I'm not aware of usage outside of BAPC yet.
1313

1414
## Installation
1515

16-
You can install the [bapctools-git AUR
17-
package](https://aur.archlinux.org/packages/bapctools-git/), mirrored
18-
[here](https://github.com/RagnarGrootKoerkamp/bapctools-git), or use the [Docker
19-
image](#Docker).
16+
> [!IMPORTANT]
17+
> The `legacy` version of BAPCtools is no longer maintained.
18+
> Please use the latest version, which is compatible with problem format version
19+
> [`2023-07-draft`](https://icpc.io/problem-package-format/spec/2023-07-draft.html).
20+
> The `bt upgrade` command in the latest version of BAPCtools
21+
> is a best-effort automated way to upgrade `legacy` problems to `2023-07-draft`.
22+
23+
You can install the [bapctools-git AUR package](https://aur.archlinux.org/packages/bapctools-git/),
24+
mirrored [here](https://github.com/RagnarGrootKoerkamp/bapctools-git),
25+
or use the [Docker image](#Docker).
2026

2127
Otherwise, clone this repository and install the required dependencies manually.
2228
(If you know how to make a Debian package, feel free to help out.)
@@ -99,9 +105,9 @@ For maintainers, these are the steps to build and push an updated image:
99105
$ sudo systemctl start docker
100106
$ docker pull archlinux:latest
101107
$ docker login
102-
$ docker build . -t ragnargrootkoerkamp/bapctools
103-
$ docker push ragnargrootkoerkamp/bapctools
104-
$ ssh <server> sudo docker pull ragnargrootkoerkamp/bapctools
108+
$ docker build . -t ragnargrootkoerkamp/bapctools:legacy
109+
$ docker push ragnargrootkoerkamp/bapctools:legacy
110+
$ ssh <server> sudo docker pull ragnargrootkoerkamp/bapctools:legacy
105111
```
106112

107113
The last step is needed when your CI server is not automatically pulling the latest version.

skel/forgejo_actions_latest_bt/setup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ runs:
44
steps:
55
- name: update BAPCtools
66
run: |
7-
git -C /opt/hostedtoolcache/BAPCtools pull --ff-only || git clone https://github.com/RagnarGrootKoerkamp/BAPCtools.git /opt/hostedtoolcache/BAPCtools
7+
git -C /opt/hostedtoolcache/BAPCtools pull --ff-only || git clone https://github.com/RagnarGrootKoerkamp/BAPCtools.git /opt/hostedtoolcache/BAPCtools --branch legacy
88
ln -s /opt/hostedtoolcache/BAPCtools/bin/tools.py bt

skel/gitlab_ci/header_latest_bt.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ image:
44

55
default:
66
before_script:
7-
- git -C /cache/BAPCtools pull --ff-only || git clone https://github.com/RagnarGrootKoerkamp/BAPCtools.git /cache/BAPCtools
7+
- git -C /cache/BAPCtools pull --ff-only || git clone https://github.com/RagnarGrootKoerkamp/BAPCtools.git /cache/BAPCtools --branch legacy
88
- ln -s /cache/BAPCtools/bin/tools.py bt

0 commit comments

Comments
 (0)