Ho appena provato ad aggiornare un’installazione più vecchia (2.x) e continuo a ricevere errori.
Ecco l’errore che ricevo dopo aver eseguito ./launcher rebuild app da /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>
Posizione del errore: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec fallito con i parametri {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'"]}
a45e890ca3c9eacab4eb37560638252189690d4fa1a6fea78e6b33cf6f192236
Non sono sicuro di cosa stia succedendo: dall’output della console prima del fallimento non riesco a leggere nulla di utile. Ho notato solo che Discourse pups si trova in uno stato di HEAD distaccato durante il checkout, ma non sono sicuro che sia un problema…
Da https://github.com/discourse/pups
17f04ec..e0ff889 master -> origin/master
* [nuovo ramo] main -> origin/main
* [nuovo tag] v1.1.1 -> v1.1.1
* [nuovo tag] v1.1.0 -> v1.1.0
Aggiornamento 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 file modificati, 1158 inserzioni(+), 607 eliminazioni(-)
creato il file .github/workflows/ci.yml con modalità 100644
creato il file .github/workflows/lint.yml con modalità 100644
creato il file .rubocop.yml con modalità 100644
creato il file lib/pups/docker.rb con modalità 100644
creato il file test/docker_test.rb con modalità 100644
Nota: checkout di 'v1.0.3'.
Ti trovi in uno stato di "HEAD distaccato". Puoi guardare intorno, fare modifiche sperimentali e committarle, e puoi scartare qualsiasi commit effettuato in questo stato senza impattare alcun ramo eseguendo un altro checkout.
Se desideri creare un nuovo ramo per conservare i commit che crei, puoi farlo (ora o in seguito) utilizzando -b con il comando checkout. Esempio:
git checkout -b <nome-nuovo-ramo>
HEAD C'è stato un errore nel mio aggiornamento
```ruby
api_key = "una veloce volpe marrone"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })
Per favore aiutami a sistemarlo.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 -- : Esecuzione di bundle install --deployment --jobs 4 --retry 3 --verbose --without “test” “development”` con bundler 2.4.13
Bloccato, utilizzo della risoluzione dal lockfile
La definizione manca delle dipendenze, impossibile risolvere e materializzare localmente (GitHub - rails/sprockets: Rack-based asset packaging system · GitHub (at 3.x@f4d3dae) non è ancora stato clonato)