Feature request : avoid unecessary HTTP mirror update when nothing changed
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 50/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- go
- 領域
- networking
調査の方向性
The payload names no files, so start from the aptly mirror update command and the HTTP downloader it uses to fetch Release/InRelease from the mirror URL. Check aptly mirror show -json to confirm LastDownloadDate is already persisted, since that value is what the request's If-Modified-Since header would carry. Done means a 304 response skips the download and exits cleanly, while a 200 proceeds exactly as today.
索引モデルが issue の本文から書いたものです。
説明
(First thank you Aptly team for this great tool !)
Found myself in a work where I have to mirror several repositories, then filter, merge and publish a new one.
These repo are updated on really different ways : some are updated 4 times a day, while other only change on a monthly basis.
Every time my script invoke "aptly mirror update", it can take a very long time depending on the network conditions.
To improve my script execution time I had to create a small shell script around "aptly mirror update" to avoid updating unchanged mirror.
Something like (pseudo code):
TIMECOND = $(aptly mirror show -json $REPONAME | jq -r .LastDownloadDate)
Then :
CODE=$(curl --head --time-cond $TIMECOND $REPO_URL/Release)
if [ $CODE -eq 304 ] ; then exit 0 ; fi
It would be great to have this feature directly in Aptly.
It could be done by adding a header on the metadata HTTP get request, with the already known lastDownloadDate :
If-Modified-Since: Fri, 21 Aug 2026 12:08:56 UTC
And deal with the answer either 200 (new file, go on) or 304 (unchanged, skip download)
(edit : fix mis-negate sentence)
- 主要言語
- Go
- スター
- 2.9k
- フォーク
- 436
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aptly-dev/aptly のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 54/100
aptly-dev/aptly の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
slavakurilyak/awesome-ai-agents#880 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
apache/openserverless#282 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
agent-butler-finding bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
jordansmall/spindrift#6161 ·
メンテナーはふだん 1 日以内に返信