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

[K-Bug] Kompile silently allows files with the same name to exist in multiple include directories

Aperta
#4,847 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
compilers

Direzione di ricerca

Start with the pyk library's include-directory sorting and the kompile front end, then reproduce the collision using the wasm-semantics and skribe definitions referenced in the issue. Done means kompile rejects duplicate files reached through requires, or at minimum emits a warning instead of silently depending on directory order.

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

Descrizione

What component is the issue in?

Front-End

Which command
  • kompile
  • kast
  • krun
  • kprove
  • kprovex
  • ksearch
What K Version?

v7.1.276

Operating System

Linux

K Definitions (If Possible)

See runtimeverification/wasm-semantics#732 and https://github.com/runtimeverification/skribe/pull/23/commits/9a106191258cba3c5cf673300d0a58b5e31548eb

Steps to Reproduce

The include directories are sorted prior to being passed to kompile in the pyk library. Due to the different nix build directory on MacOS compared to Linux (/private/tmp/nix-build-skribe-dirty.drv-1/source/kdist-fb9c790/... <-> /build/source/kdist-5b094bf/...), the skribe kdist build dependencies were passed last on nix MacOS compared to being passed first on nix Linux. Therefore, due to a file having the same name in wasm-semantics and in skribe-semantics, the nix build succeeded on Linux and failed on MacOS.

Expected Results

The build should fail if a file that is included via the requires keyword exists in multiple places. At the very least, a warning should be generated.

Lingua principale
Python
Stelle
591
Fork
163
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 runtimeverification/k

Tutte le issue di runtimeverification/k

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.