mattcasters opened a new pull request, #7942:
URL: https://github.com/apache/hop/pull/7942
## What
Adds a bundled `hop-misc-setup` plugin so new Hop users can move
configuration out of the install tree.
- **GUI:** Tools → Configure Hop environment… (Variables + Location tabs),
Welcome topic, first-start prompt
- **CLI:** `hop setup` / `hop setup show` / `hop setup apply`
- Writes `HOP_CONFIG_FOLDER`, `HOP_AUDIT_FOLDER`, `HOP_JAVA_HOME`,
`HOP_OPTIONS`, and `HOP_SHARED_JDBC_FOLDERS` to:
- Windows user environment (PowerShell, not setx)
- bash/zsh rc file (idempotent marked block)
- well-known `hop-env.sh` / `hop-env.cmd`
- Launchers source that hop-env file so desktop restarts pick up the folders
- Optional copy of `<install>/config` when the new config folder is empty
- Hop Web only previews a script (does not write the server OS environment)
Recommended folders: `~/.local/share/hop` + `~/.local/state/hop`
(Linux/macOS, honors XDG), `%USERPROFILE%\.hop\config` + `audit` (Windows).
Existing defaults stay `./config` and `./audit`. Install fallbacks in `Const`
are unchanged.
## Why
https://github.com/apache/hop/issues/7940
Without these variables Hop stores config and audit next to the install,
which is lost on upgrade. The same friction showed up when documenting
first-run setup (#7931).
## How to test
1. From a Hop install: `./hop setup apply --defaults --dry-run`
2. In Hop Gui: Tools → Configure Hop environment… — Variables tab, Location
tab, Preview, Apply
3. Restart Hop and confirm `HOP_CONFIG_FOLDER` is used (About dialog /
config path)
4. Confirm launchers source `~/.config/hop/hop-env.sh` (or
`%USERPROFILE%\.hop\hop-env.cmd`)
Fixes #7940
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]