Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

ERROR: error executing step command 'package --all'

オープン
#288 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

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

調査の方向性

azd up と azd package --all のフローから開始し、/tmp/azd-prebuild-1940153890.sh を呼び出す prebuild フックを調査します。posix シェルの設定を含め、動作している回避策 scripts/prebuild.sh と比較します。GitHub Codespaces とローカル環境の両方で、回避策なしに Web サービスのパッケージ化が成功すれば完了です。

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

説明

I am having this issue during the azd up deployment. I have azd version 1.20.2

I tried deploying using Github Codespaces and locally with the same result.
Packaging services (azd package)

(x) Failed: Packaging service web

ERROR: error executing step command 'package --all': failed building service 'web': failed invoking event handlers for 'prebuild', 'prebuild' hook failed with exit code: '127', Path: '/tmp/azd-prebuild-1940153890.sh'. : exit code: 127, stdout: , stderr: /bin/sh: 1: /tmp/azd-prebuild-1940153890.sh: not found

I was able to deploy the template after create an script file with the commands in the prebuild hook

#!/bin/sh
set -e

cd "$(dirname "$0")/../src/frontend"
npm install
npm run build

Then I changed the hook

posix:
                    shell: sh
                    run: ../../scripts/prebuild.sh
                    interactive: false
                    continueOnError: false

It worked for both Github Codespaces and in my local.

主要言語
Python
スター
505
フォーク
1.1k
平均マージ
3日 13時間
マージ済み PR(30日)
1

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

Azure-Samples/rag-postgres-openai-python のほかの issue

Azure-Samples/rag-postgres-openai-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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