debug version parsing?

オープン
#3,705 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
yaml
領域
cli, tooling

調査の方向性

Start by reproducing pkg build openssh.com with VERBOSE=1 DEBUG=1, then read resolve.ts and the usePantry.ts:43 call shown in the trace. Trace how the manifest's versions block produces an empty list; done means identifying the parsing failure and confirming a fix with the portable-OpenSSH manifest.

索引モデルが issue の本文から書いたものです。

説明

Hi,

i try to package portable-openssh
i thought the version parsing would be easy but it seems it does not work as expected.

versions:
  url: https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/
  match: /.*\.tar\.gz/
  strip:
    - /^openssh-/
    - /.tar.gz$/
distributable:
  url: https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-{{version}}.tar.gz
  strip-components: 1
...
$ VERBOSE=1 DEBUG=1 pkg build openssh.com
...
 building openssh.com
++ resolve.ts openssh.com
{ versions: [] }
error: Uncaught Error: not-found: version: openssh.com
    throw new Error(`not-found: version: ${utils.pkg.str(spec)}`)
          ^
    at Object.resolve (file:///home/dd.linux/.pkgx/pkgx.sh/brewkit/v0.46.4/lib/usePantry.ts:43:11)
    at eventLoopTick (ext:core/01_core.js:183:11)
    at async file:///home/dd.linux/.pkgx/pkgx.sh/brewkit/v0.46.4/libexec/resolve.ts:15:15
+ PKG=

Is there a way to really debug the version parsing?

主要言語
C
スター
199
フォーク
142
平均マージ
2時間 33分
マージ済み PR(30日)
145

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pkgxdev/pantry のほかの issue

pkgxdev/pantry の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。