لقد حاولت للتو تحديث تثبيت قديم (الإصدار 2.x) لكنني أفشل مرارًا وتكرارًا.
إليك الخطأ الذي يظهر لي بعد تنفيذ الأمر ./launcher rebuild app من المسار /var/discourse
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development' failed with return #<Process::Status: pid 342 exit 5>
موقع الخطأ: /pups/lib/pups/exec_command.rb:112:in `spawn'
فشلت عملية التنفيذ مع المعاملات {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'"]}
a45e890ca3c9eacab4eb37560638252189690d4fa1a6fea78e6b33cf6f192236
لا أعرف ما الذي يحدث - من مخرجات وحدة التحكم قبل الفشل، لا يمكنني قراءة أي شيء مفيد. لاحظت فقط أن Discourse pups في حالة HEAD منفصلة (detached HEAD) أثناء التحقق، لكنني لست متأكداً مما إذا كانت هذه مشكلة…
من https://github.com/discourse/pups
17f04ec..e0ff889 master -> origin/master
* [فرع جديد] main -> origin/main
* [وسم جديد] v1.1.1 -> v1.1.1
* [وسم جديد] v1.1.0 -> v1.1.0
تحديث 17f04ec..e0ff889
تقديم سريع (Fast-forward)
.github/workflows/ci.yml | 29 ++++++
.github/workflows/lint.yml | 27 +++++
.rubocop.yml | 3 +
Gemfile | 2 +
Guardfile | 4 +-
README.md | 21 ++++
Rakefile | 14 +--
bin/pups | 8 +-
lib/pups.rb | 32 ++++--
lib/pups/cli.rb | 92 ++++++++++-------
lib/pups/command.rb | 25 +++--
lib/pups/config.rb | 240 +++++++++++++++++++++++--------------------
lib/pups/docker.rb | 69 +++++++++++++
lib/pups/exec_command.rb | 182 ++++++++++++++++----------------
lib/pups/file_command.rb | 60 +++++------
lib/pups/merge_command.rb | 94 ++++++++---------
lib/pups/replace_command.rb | 70 +++++++------
lib/pups/runit.rb | 47 +++++----
lib/pups/version.rb | 4 +-
pups.gemspec | 37 ++++---
test/cli_test.rb | 102 +++++++++++++++---
test/config_test.rb | 215 ++++++++++++++++++++++++++++----------
test/docker_test.rb | 157 ++++++++++++++++++++++++++++
test/exec_command_test.rb | 62 ++++++-----
test/file_command_test.rb | 17 ++-
test/merge_command_test.rb | 64 ++++++------
test/replace_command_test.rb | 86 ++++++++--------
test/test_helper.rb | 2 +
28 ملفاً تم تغييره، 1158 إدراجاً(+)، 607 حذفاً(-)
إنشاء وضع 100644 .github/workflows/ci.yml
إنشاء وضع 100644 .github/workflows/lint.yml
إنشاء وضع 100644 .rubocop.yml
إنشاء وضع 100644 lib/pups/docker.rb
إنشاء وضع 100644 test/docker_test.rb
ملاحظة: التحقق من 'v1.0.3'.
أنت في حالة 'HEAD منفصل' (detached HEAD). يمكنك التصفح، وإجراء تغييرات تجريبية والتثبيت عليها، ويمكنك التخلي عن أي تثبيتات تقوم بها في هذه الحالة دون التأثير على أي فروع عن طريق إجراء عملية تحقق أخرى.
إذا كنت ترغب في إنشاء فرع جديد للاحتفاظ بالتثبيتات التي تقوم بإنشائها، يمكنك
ذلك (الآن أو لاحقاً) باستخدام -b مع أمر التحقق مرة أخرى. مثال:
git checkout -b <اسم-الفرع-الجديد>
HEAD حدث خطأ في تحديثي
```ruby
api_key = "a quick brown fox"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })
يرجى مساعدتي في إصلاحه.taller.rb:233:in block in ensure_specs_are_compatible!' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/spec_set.rb:165:in each’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/spec_set.rb:165:in each' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:231:in ensure_specs_are_compatible!’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:83:in block in run' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/process_lock.rb:12:in block in lock’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/process_lock.rb:9:in open' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/process_lock.rb:9:in lock’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:71:in run' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/installer.rb:23:in install’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli/install.rb:62:in run' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:261:in block in install’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/settings.rb:131:in temporary' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:260:in install’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor.rb:392:in dispatch' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:34:in dispatch’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/vendor/thor/lib/thor/base.rb:485:in start' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/cli.rb:28:in start’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/exe/bundle:45:in block in <top (required)>' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/lib/bundler/friendly_errors.rb:117:in with_friendly_errors’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.13/exe/bundle:33:in <top (required)>' /usr/local/bin/bundle:23:in load’
/usr/local/bin/bundle:23:in <main>' I, [2023-09-28T09:40:10.049549 #1] INFO -- : Running bundle install --deployment --jobs 4 --retry 3 --verbose --without “test” “development”` with bundler 2.4.13
مجمّد، باستخدام الحل من ملف القفل
التعريف يفتقر إلى تبعيات، وفشل في الحل والتكوين محلياً (GitHub - rails/sprockets: Rack-based asset packaging system · GitHub (at 3.x@f4d3dae) لم يتم استرجاعه بعد)