summaryrefslogtreecommitdiff
path: root/internal/processing/app.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2022-06-08 19:28:28 +0100
committerLibravatar GitHub <noreply@github.com>2022-06-08 20:28:28 +0200
commit91c0ed863a7d514b65db79ae4eb85822f0f0f508 (patch)
treece92c37f9b311020e07d09c23a917efc451b49d3 /internal/processing/app.go
parent[feature] add vscode workspace config for linting + debugging (#588) (diff)
downloadgotosocial-91c0ed863a7d514b65db79ae4eb85822f0f0f508.tar.xz
[bugfix] #621: add weak type handing to mapstructure decode (#625)
* Drone sig (#623) * accept weakly typed input on mapstructure decode i.e. .UnmarshalMap() Signed-off-by: kim <grufwub@gmail.com> * add envparsing script to test for panics during environment variable parsing Signed-off-by: kim <grufwub@gmail.com> * add envparsing.sh script to drone commands Signed-off-by: kim <grufwub@gmail.com> * update drone signature Co-authored-by: kim <grufwub@gmail.com> * compare expected with output * update expected output of envparsing * update expected output to correct value * use viper's unmarshal function instead There were problems with marshalling string slices from viper into the st.config struct with the other function. Now, we can use viper's unmarshal function and pass in the custom decoder config that we need as a hook. This ensures that we marshal string slices from viper into our config struct correctly. Co-authored-by: tobi <31960611+tsmethurst@users.noreply.github.com> Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
Diffstat (limited to 'internal/processing/app.go')
0 files changed, 0 insertions, 0 deletions