Replies: 3 comments 3 replies
-
|
@sestegra I would love help with a homebrew formula! You have hit upon a bit of a problem with how Porter works today, we have assumptions that everything is in the same directory as the porter binary (unless the environment variable PORTER_HOME) is set. It's not standard and should be addressed. I am 100% on-board with having our current directory structure split up into
Let me write up an issue that describes what needs to be done in Porter for this bit and I'll link it here. #1328 Let me know if you'd be interested in working on that issue! 😀 Sounds like we need a bit of refactoring in Porter itself before we can submit a formula? |
Beta Was this translation helpful? Give feedback.
-
|
With PR #1329, a formula could be created to only install Nevertheless, PORTER_HOME should be fed by end-users:
We need to find a way to ease the feed of the local PORTER_HOME. |
Beta Was this translation helpful? Give feedback.
-
|
My first try for the packaging using Homebrew isn't well, see sestegra/homebrew-porter@1b38cbd |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
After discovering Porter, I would like to contribute to the creation of homebrew formula for macos.
However,
porterbinary needs to have its binary "companions" to be installed as relative to its path (aka PORTER_HOME):porter-runtimebinarymixinsfolder with local and invocation binariespluginsfolder with local and invocation binariesMultiple
portercalls createschema.jsonand some data folders likeclaims,credentials,parametersandresultsin PORTER_HOME.For the following discussion, let's assume that:
porterandporter-runtimecould be categorized as core binaries~/.porterand%USERPROFILE%\.portercould be named home directory/usr/localand%PROGRAMFILES%could be named system directoryBefore building a package, Porter needs a packaging plan for all supported systems that defines locations for core, add-ons and user parts.
So, I suggest that:
With homebrew,
/usr/local/bin/porterwould be a symlink to/usr/local/Cellar/porter/<version>/porterIn fact, during a life-cycle of one porter revision, mixins and plugins could be installed and/or upgraded by different users.
What do you think about this idea?
Beta Was this translation helpful? Give feedback.
All reactions