go-sprout / sprout

From sprig to sprout - Useful template functions for Go templates with steroids
https://sprout.atom.codes
MIT License
86 stars 4 forks source link

chore: reduce yaml dependencies footprint #38

Closed andig closed 2 months ago

andig commented 3 months ago

Description

Noticed that k8s suddenly appeared in my dependencies. Since this only adds yaml2json features it's not necessary here.

Changes

Checklist

Additional Information

Follow-up to https://github.com/go-sprout/sprout/pull/36

andig commented 3 months ago

I‘ll fix the tests

42atomys commented 3 months ago

Hey, thanks for your time, dont hesitate to request review when you need !

andig commented 3 months ago

@42atomys please take a look. Formatting change due to gofmt.

Worth noting that all tests are failing locally:

--- FAIL: TestMustToDate (0.00s)
    --- FAIL: TestMustToDate/TestDate (0.00s)
        conversion_functions_test.go:143:
                Error Trace:    /Users/andig/htdocs/sprout/test_helpers_test.go:57
                Error:          Not equal:
                                expected: "time.Time-2024-05-09 00:00:00 +0000 UTC"
                                actual  : "time.Time-2024-05-09 00:00:00 +0200 CEST"

Seems that the tests are not stable regarding time zone? Makes it hard to pick up the actual errors.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Files Coverage Δ
encoding_functions.go 96.9% <100.0%> (-3.1%) :arrow_down:
42atomys commented 2 months ago

@andig I will takes a look to resolve the time zone leaking 💧 by opening an issue to track that (https://github.com/go-sprout/sprout/issues/41)