Commit Graph

40 Commits

Author SHA1 Message Date
e08dd2f2e8 sync: Allow empty files 2024-10-11 14:55:28 +02:00
c3353572e6 sync: Export DownloadExerciceFile function 2024-04-19 11:48:58 +02:00
1f833d39fc admin: Export more importer functions 2024-04-19 11:48:57 +02:00
b6966d47ce sync: Replace []error by go.uber.org/multierr 2024-04-19 11:48:57 +02:00
ba26dd6bb1 sync: Don't warn on remote compressed files 2024-04-19 11:48:57 +02:00
49aa1682d7 sync: Refactor how and when remote files are downloaded 2024-04-19 11:48:57 +02:00
6163d51e5b repochecker: New option to restrict domain where remote file can come from 2024-04-19 11:48:57 +02:00
1d4b79bf90 sync: Handle remote challenge files 2024-04-19 11:48:57 +02:00
dc83efa868 sync: Better perform exception in exercices 2024-04-19 11:46:54 +02:00
e261c77c79 sync: Include in file presence checks splitted and compressed files 2024-04-19 11:46:53 +02:00
c5a059bd3b sync: Expose sync.Exists function 2024-04-19 11:46:53 +02:00
aa0e7406c1 Detect theme and exercice language at runtime (not stored) 2024-04-19 11:46:52 +02:00
bd19d31577 New attribute "disclaimer" on downloadable files 2024-04-19 11:46:51 +02:00
257c594dbe sync: Expose GetFileSize 2024-04-19 11:46:51 +02:00
9bcf4a481e repochecker: Check gunziped file hash 2024-04-19 11:46:51 +02:00
6ca71230c1 Refactor sync file reading 2024-04-19 11:46:51 +02:00
f4c3f1e15e sync: Create empty file for nginx gzip-static module 2024-04-19 11:46:51 +02:00
ae1378780f admin/sync: Also handle uncompressed file in CheckExerciceFiles 2024-04-19 11:46:51 +02:00
a28f108b8a db: Add a published attribute, filled by challenge.txt 2024-04-19 11:46:51 +02:00
6b7ed273b7 db: Add cksum_shown field to files in order to store second checksum in case of gziped content 2024-04-19 11:46:51 +02:00
fb368d79d1 sync: Introduce repochecker-ack.txt to support check exceptions 2024-04-19 11:46:50 +02:00
c78545c18b sync: Report custom errors 2022-10-29 17:21:50 +02:00
b0129e5239 sync: Use errors instead of string to report 2022-10-29 17:21:49 +02:00
560110ba5e sync: Expose GetFile and GetFileContent functions 2022-05-24 21:52:58 +02:00
8b3fbdb64a admin: Use gin-gonic as router 2022-05-22 19:10:17 +02:00
c7569b5e54 Use pointer receiver more offen 2021-12-11 11:20:44 +01:00
724b00b825 repochecker: Enforce archive types 2021-12-11 02:02:06 +01:00
7e9c2ccbe9 sync: Ignore some hidden files/dirs
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-30 11:32:23 +02:00
9fa89e0793 repochecker: fix file concatenation 2021-05-14 00:42:40 +02:00
adb424ea03 Use fmt.Errorf 2020-04-15 07:39:38 +02:00
f7762c0828 sync: don't try to import part of splitted files, just import the whole file 2020-01-23 18:26:30 +01:00
2bae30a841 admin/api: new route to list remote files and their properties 2020-01-23 18:26:30 +01:00
769158a9d7 repochecker: add new option -skipfiledigests to speed up the checks and avoid downloading lots of content 2020-01-23 18:26:30 +01:00
3f55845374 sync: Extract function that import files from importer 2019-07-06 04:08:29 +02:00
d89cd2f0ca sync: Allow \r at EOL in DIGESTS 2019-01-21 03:08:05 +01:00
66391baeef sync: alert when imported file is empty 2018-12-08 03:23:07 +01:00
bcc598ebd5 Write docs! 2018-05-11 15:03:09 +02:00
809d166a2d admin/sync: avoid false positive when no files are distributed 2018-01-18 12:08:12 +01:00
a543be0255 admin: able to sync splitted files 2018-01-17 18:52:42 +01:00
762d3a5222 admin: synchronization of exercices, files, hints and keys 2018-01-17 18:52:40 +01:00