Replies: 1 comment 1 reply
-
You could make a PR against the develop branch so we can have a look. I find this idea very interesting. No need to wait for the Contributing or Shell check PR, we can changes those if need be. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current contributing guide branch has documentation that indicates the way to develop against the repo is to
I'd like to propose a (small?) change to this approach; use a variable on all of the source calls in
ct/*.sh
, plus appropriate changes inbuild.func
and other scripts. This would make the development process require zero changes to the shell scripts; just set an environment variable to change the base of the URL and away you go.Benefits
file:///
URLs with curl; no commit + push for every iterationFor example,
Default
Remote by not setting the variable correctly
Defaults to the URL base in the script.
Forked repository
Local checkout
On my local checkout, I modified the
echo_default
function to add a word to theContainer Type
output; it's not pushed, so it doesn't show in the previous examples.The change for all the
ct
scripts looks likeThe
:=
syntax is "if the variable is null or unset, set it", similar (but not equal) to"${var-default}"
. The": ${VAR...}"
syntax is a bashism for triggering the expansion and assignment, and it always succeeds.Some similar changes are needed in build.func, and possibly elsewhere - I haven't looked at everything yet.
This would conflict with the PR that adds actions to check file content for header lines on the right line number, but it'd not be hard to tune those checks. A check could be added to ensure the variable is present, and set to the expected community scripts URL.
I'm willing to put up a PR for this change, potentially after the documentation branch and the context-check PR are committed (and I'd update other files as appropriate).
Beta Was this translation helpful? Give feedback.
All reactions