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.
-
After discovering Porter, I would like to contribute to the creation of homebrew formula for macos.
However,
porter
binary needs to have its binary "companions" to be installed as relative to its path (aka PORTER_HOME):porter-runtime
binarymixins
folder with local and invocation binariesplugins
folder with local and invocation binariesMultiple
porter
calls createschema.json
and some data folders likeclaims
,credentials
,parameters
andresults
in PORTER_HOME.For the following discussion, let's assume that:
porter
andporter-runtime
could be categorized as core binaries~/.porter
and%USERPROFILE%\.porter
could be named home directory/usr/local
and%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/porter
would be a symlink to/usr/local/Cellar/porter/<version>/porter
In 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