Add support for patches

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
haskell
領域
build-system

調査の方向性

まず、Stack のプロジェクトレベルの設定と、issue に記載されている stack build コマンドのオプションを確認し、その後、順序付けられたパッチの例を比較します。1 つ以上のパッケージに対するパッチの指定方法、ビルド前に一覧に記載された順序で適用する方法、そしてコマンドラインオプションまたはプロジェクト設定のいずれかを通じてサポートする方法を定義できれば完了です。

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

説明

component: build component: configuration type: discuss type: enhancement

Based on a discussion in the Cabal and Hackage room on Matrix, initiated by @juhp:

In short, the ability to extend a project description to specify one or more *.patch files in respect of a package, for one or more packages, the patch files being applied in the order listed to modify the source code files before they are built; and the extension either happening at the command line or by agumenting Stack's project-level configuration file.


Example of a *.patch file:

Example of what @juhp did, using RPM macros:

cabal unpack %{ghcide}
sed -e "s/@GHCIDE@/%{ghcide}/" %{SOURCE1} > cabal.project
( cd %{ghcide}
  %patch -P1 -p2
)

Example of hypothetical command line options:

stack build --patch ghcide:the-first.patch --patch ghcide:second.patch
-  
stack build --patches "ghcide:first.patch,second.patch ..."
主要言語
Haskell
スター
4.1k
フォーク
857
平均マージ
17時間 32分
マージ済み PR(30日)
5

環境構築

Codespaces で開く

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

はじめの一歩

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

commercialhaskell/stack のほかの issue

commercialhaskell/stack の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

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

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