Skip to content

Commit 8a64efd

Browse files
author
Miłosz
authored
Merge branch 'CTFd:master' into milymilo/add-branch-to-challenges
2 parents f2a084c + 0d807ef commit 8a64efd

5 files changed

Lines changed: 358 additions & 340 deletions

File tree

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
# 0.1.6 / 2026-01-06
4+
5+
### Added
6+
7+
- Add `sha1sum` to `--ignore` as part of `ctf challenge sync` to allow syncing files when the remote checksum or local checksum is corrupted
8+
9+
### Fixed
10+
11+
- Fix an issue where if deployment returned updated connection info we wouldn't update it in challenge.yml
12+
- Fix an issue where relative paths would not deploy due to a logging error
13+
14+
### Changed
15+
16+
- Challenges without an image will be considered a skipped deploy instead of a failed deploy
17+
- Switch from poetry to uv
18+
- Switch from to ruff
19+
320
# 0.1.5 / 2025-09-04
421

522
### Added

ctfcli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "0.1.5"
1+
__version__ = "0.1.6"
22
__name__ = "ctfcli"

ctfcli/core/challenge.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,8 +772,10 @@ def sync(self, ignore: tuple[str] = ()) -> None:
772772
) as lf:
773773
local_file_sha1sum = hash_file(lf)
774774

775-
if local_file_sha1sum == remote_file_sha1sum:
776-
continue
775+
# Allow users to specify sha1sum in ignore to force reuploads
776+
if "sha1sum" not in ignore:
777+
if local_file_sha1sum == remote_file_sha1sum:
778+
continue
777779

778780
# if sha1sums are not present, or the hashes are different, re-upload the file
779781
self._delete_file(remote_files[local_file_name]["location"])

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ctfcli"
3-
version = "0.1.5"
3+
version = "0.1.6"
44
description = "ctfcli is a tool to manage Capture The Flag events and challenges"
55
authors = [
66
{ name = "Kevin Chung", email = "kchung@ctfd.io" },

0 commit comments

Comments
 (0)