Commit Graph

32 Commits (a3660baf78033d886c5b533b194eab20109ab87f)

Author SHA1 Message Date
Alexander Bayandin 5d9e8f7fa3
Replace deprecated set-output with GITHUB_OUTPUT 2023-01-27 20:44:26 +00:00
Bo Anderson bd3a103351
workflows: support ephemeral 13-arm64 2022-10-17 15:39:58 +01:00
danielnachun a5c271b6c3 cmd/determine-rebottle-runners: use Ubuntu 22.04 2022-09-16 08:25:20 +01:00
Shaun Jackman 8e9d614622 CI: Use ubuntu-22.04 rather than ubuntu-latest (ubuntu-20.04)
Use ubuntu-22.04 for the CI tests rather than ubuntu-latest,
which is currently ubuntu-20.04.
2022-09-07 02:22:48 +08:00
Bo Anderson ecb81bfc5e
workflows: migrate Intel runners to ephemeral 2022-07-18 21:36:37 +01:00
Rylan Polster 00322f8801
`determine-rebottle-runners`: use `MacOSVersions::SYMBOLS` (#104733) 2022-06-29 14:11:45 -04:00
Bo Anderson 1c443ac680 cmd/postgresql-upgrade-database: use ENV.fetch 2022-06-16 16:46:45 +02:00
leunga1000 155ba9c303
Stop service if it is present on system (it may be spinning) (#95737)
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-02-24 14:52:11 +00:00
Bo Anderson e0174499bb
workflows: invoke self-hosted logic on Linux (#91274) 2021-12-14 19:09:41 +00:00
Bo Anderson 044713f3a2
workflows/dispatch-rebottle: dynamic runner selection (#89984) 2021-12-04 06:59:31 +08:00
Serhiy Yefremenko 0d02dcabdf do not modify frozen string 2020-09-07 15:15:46 +01:00
Mike McQuaid 7e8631862d cmd: cleanup commands.
Cleanup the code and remove some unused requires.

Needed for https://github.com/Homebrew/brew/pull/8556.
2020-09-01 13:54:03 +01:00
Markus Reiter 8123eba9a7 Fix code style for commands. 2020-08-31 07:49:22 +02:00
Mike McQuaid fccbd331ad
cmd/aspell-dictionaries: fix brew style. 2020-05-22 08:47:18 +01:00
Mike McQuaid fd22985e33
cmd/postgresql-upgrade-database: fix RuboCop Style/ConditionalAssignment. 2020-03-13 20:59:20 +00:00
Mike McQuaid 6399ee19cb cmd: use CLI::Parser.
Migrate all commands to use CLI::Parser.
2020-02-03 18:22:05 +01:00
Bo Anderson 992e817c65
brew-postgresql-upgrade-database: fix locale issues (#47123)
Now all locale and encoding settings are migrated properly.

Also ensure that the old server is not running via `brew services`.

Fixes #47110.
2019-11-25 19:47:36 +00:00
Mike McQuaid b038c78b26
brew-postgresql-upgrade-database: brew style --fix. 2019-10-15 08:59:55 +01:00
Mike McQuaid 11ec1594b4
brew-aspell-dictionaries: brew style --fix. 2019-10-15 08:59:36 +01:00
Mike McQuaid 1dfc565550 brew-aspell-dictionaries: use new Resource#fetch API.
Also improve the code and output so we output everything in a
copy-pasteable format at the end.
2019-06-15 20:44:46 +01:00
Mike McQuaid 6010b3a8d9
brew-postgresql-upgrade-database: re-add strips.
These were mistakenly removed in https://github.com/Homebrew/homebrew-core/pull/39895.

Fixes https://github.com/Homebrew/homebrew-core/issues/40904
2019-06-12 08:34:06 +01:00
Logan Leger 02df2994aa cmd/brew-postgresql-upgrade-database: fix initdb issues.
* Add `safe_system` to `initdb` call to catch errors

If the `initdb` step fails (which it can if the options passed are
invalid), then the script will continue having marked `initdb_run` as
`true`. This causes the script to continue to `pg_upgrade` step which
will fail, ultimately triggering the `ensure` block. Since `initdb_run`
is `true`, the script tries to remove `datadir` which we don't want
since that step failed.

The change here adds `safe_system` to ensure if the `initdb` step fails,
it correctly bails out.

* Add -X to `psql` call to ignore `.psqlrc` files

Customizations in `.psqlrc` files can make the output of `psql`
unpredictable, which can break parsing of the command's output. Using -X
causes `psql` to ignore any such files and use the default output
behavior, which can be parsed with consistency.
2019-06-11 19:05:47 +01:00
Tetsu 0f598dec43 cmd/brew-postgresql-upgrade-database: use --lc-collate and --lc-ctype (#36497) 2019-02-15 15:37:31 +00:00
Mike McQuaid b156521d13 aspell: remove options.
See https://github.com/Homebrew/homebrew-core/issues/31510.

Closes #36225.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-01-21 18:36:03 +01:00
Mike McQuaid 49dcf82cb4
brew-postgresql-upgrade-database: don't use old kegs. (#35169)
Instead always rely on the versioned formulae that are properly supported.

Reference #34879.
2018-12-16 20:01:17 +00:00
Hugo Hache 2507b57357
brew-postgresql-upgrade-database: abort upgrade if pg_upgrade fails
* Use dedicated safe_system to raise exception

Closes #31175.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2018-08-21 06:04:59 +01:00
Mike McQuaid e453837304 brew-aspell-dictionaries: use more explicit open. 2018-03-06 10:15:39 +00:00
Mike McQuaid d474d480f3 brew-postgresql-upgrade-database: fix name. 2018-01-09 09:06:37 +00:00
Mike McQuaid 25d5a9ef6c brew-postgresql-upgrade-database: add new command. 2018-01-08 16:47:15 +00:00
Mike McQuaid 64b2ddc7e3 aspell-dictionaries: fix help text. 2018-01-08 16:47:15 +00:00
Mike McQuaid 9f0ac390e2 brew-aspell-dictionaries: reverse url/mirror. 2017-12-05 08:59:50 +00:00
Mike McQuaid a8ec9ccd7f brew-aspell-dictionaries: move to homebrew/core.
Experiment with moving this from Homebrew/brew to Homebrew/homebrew-core
(to allow future additions of formula-specific `cmd`s).
2017-12-05 08:59:50 +00:00