Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(flags): detect schedule set from env #1373

Merged
merged 1 commit into from
Sep 4, 2022
Merged

fix(flags): detect schedule set from env #1373

merged 1 commit into from
Sep 4, 2022

Conversation

piksel
Copy link
Member

@piksel piksel commented Sep 4, 2022

Due to how viper is integrated with pflags, the change detection is broken for environment variables (as the current value becomes the new default). This fixes the "changed" logic for schedule/interval so that environment variables are taken into account.

Fixes #1362

@codecov
Copy link

codecov bot commented Sep 4, 2022

Codecov Report

Merging #1373 (f33c491) into main (e04a107) will increase coverage by 0.13%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1373      +/-   ##
==========================================
+ Coverage   64.71%   64.85%   +0.13%     
==========================================
  Files          23       23              
  Lines        2293     2302       +9     
==========================================
+ Hits         1484     1493       +9     
  Misses        712      712              
  Partials       97       97              
Impacted Files Coverage Δ
internal/flags/flags.go 85.82% <100.00%> (+0.25%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@piksel piksel merged commit f047d75 into main Sep 4, 2022
@piksel piksel deleted the fix/schedule-env branch September 4, 2022 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Schedule broken on latest dev build
1 participant