fix: trim comments that are not modifers #371
Merged
decentral1se
merged 2 commits from 2023-10-09 12:44:18 +00:00
trim-env-var-comments into main
No Reviewers
Labels
Clear labels
bug
build
ci/cd
critical fix
design
documentation
duplicate
easy-first-issue
enhancement
help wanted
i10n
i18n
installer
invalid
question
release
release-candidate
security
tech-debt
test
wontfix
Something is not working
go build related issues
Building things with CI/CD
https://docs.coopcloud.tech/federation/resolutions/passed/010/
UI/UX
Documenting all the things
This issue or pull request already exists
Something for new people to get stuck into. We hope it's easy!
New feature
Need some help
Everything to do with localisation
Everything to do with internationalisation
Everything to do with the install script.
Something is wrong
More information is needed
Release management
Related to the new release candidate
Security related
Unit/integration testing
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/abra#371
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
See coop-cloud/organising#505. @cas i was thinking of just removing it altogether? As long as it isn't
# length=...(or any future modifiers, which the code can adapt to). Does that seem OK?As long as the modifiers don't get into the values coming from the app config (.env) I'm good with them being non-stripped. I should've specified that this has been biting from the app config although I'm sure it has bitten from the compose.yml also.
Oh yeh, indeed, endless footguns on this one 😆 Will try to cover those edge cases.
Gonna close off coop-cloud/organising#496 with tihs as well.
Thanks for the heads up @cas!
OK, this turned into a bit of a whack-a-mole but it seems like the simplest code change is just strip all comments when reading in the environment. Then, when we need comments, e.g. secret length modifiers, we re-read and don't strip. This is an easier mental model to follow in the code. Otherwise, I feel like comments will kinda just be popping up in unwanted places like in coop-cloud/organising#496.
7ad2e347aetoc249c6ae9c