Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Speed up zip/tar by allowing performant tool replacements.

Aperta
#1,080 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, python, rust

Direzione di ricerca

Look at the existing zip and tar builders in the rules_pkg codebase, likely under pkg/ or tools/. Understand the current Python reference implementation and its interface. The goal is to design toolchains allowing alternate implementations in Go or Rust, adding features like md5sum and uncompressed size calculation. Start by examining MODULE.bazel for toolchain configuration patterns and review related issues #795, #1057, #1079 for context.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

design feature-request

Building on inspiration from #795 and #1057 and #1079

The problem

  • The current zip and tar builders are too slow.
    • We use python for the reference implementation of the zip and tar builders.
    • We want to continue to use python for maximal portability. Switching to any other language gets into a pointless culture war.
  • We need more capabilities for deb and rpm packaging, such as computing checksums of files, and total expanded file size.
  • How do we make the existing implementation Nx faster and add features which scan the content in a peformant way.

Proposal

  • Create a well defined toolchains for the zip and tar writers.
  • Create a toolchain for the "compressor"
  • Continue to provide a reference implementation in python.
  • Provide alternate implementations in Go and Rust.
  • The user selects the implementation in MODULE.bazel, depending on their preferred language.
  • Add the features for md5sum calculation and uncompressed size into the zip/tar tools.
  • Future: Consider a plugin technique to the tool, so that the user can provide other scanners along the way. Imagine doing forbidding string detection while building the zip file..

How?

  • Use AI to generate the alternate language implementions.
  • Come up with a review guideline we can agree on first. Perhaps using a combination of alternate agent as a reviewer along with human audit is sufficient.
  • Require all new features to be added for each language implementation at the same time.
Lingua principale
Starlark
Stelle
254
Fork
225
Merge medio
2g 4h
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bazelbuild/rules_pkg

Tutte le issue di bazelbuild/rules_pkg

Issue simili

Altre issue su Build System

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.