You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/go/pkg/mod/github.com/spf13/viper@v1.16.0/internal/encoding/dotenv/codec.go:51:33: cannot use &buf (value of type *bytes.Buffer) as gotenv.Reader value in argument to gotenv.StrictParse: *bytes.Buffer does not implement gotenv.Reader (missing method ReadAt)
failed to build, error: exit status 1
Steps To Reproduce
Upgrade dependencies of project resulting in subosito/gotenv v1.5.0
Error message listed above.
Adding replace github.com/subosito/gotenv => github.com/subosito/gotenv v1.4.2 to go.mod, builds succeed.
A maintainer will take a look at your issue shortly. 👀
In the meantime: We are working on Viper v2 and we would love to hear your thoughts about what you like or don't like about Viper, so we can improve or fix those issues.
📣 If you've already given us your feedback, you can still help by spreading the news,
either by sharing the above link or telling people about this on Twitter:
It looks like the issue I opened on subosito/gotenv#27 has been resolved, thank you @subosito! As for #1601 it looks like that was created shortly after this issue (#1600), apologies for the duplicates.
I have confirmed with 1.6.0 that is working again.
Preflight Checklist
Viper Version
1.16.0
Go Version
1.20
Config Source
Environment variables
Format
Dotenv
Repl.it link
No response
Code reproducing the issue
No response
Expected Behavior
Package to build.
Actual Behavior
Steps To Reproduce
subosito/gotenv
v1.5.0replace github.com/subosito/gotenv => github.com/subosito/gotenv v1.4.2
togo.mod
, builds succeed.Additional Information
subosito/gotenv#27
The text was updated successfully, but these errors were encountered: