...
1name: 🐛 Bug report
2description: Report a bug to help us improve Viper
3labels: [kind/bug]
4body:
5- type: markdown
6 attributes:
7 value: |
8 Thank you for submitting a bug report!
9
10 Please fill out the template below to make it easier to debug your problem.
11
12 If you are not sure if it is a bug or not, you can contact us via the available [support channels](https://github.com/spf13/viper/issues/new/choose).
13- type: checkboxes
14 attributes:
15 label: Preflight Checklist
16 description: Please ensure you've completed all of the following.
17 options:
18 - label: I have searched the [issue tracker](https://www.github.com/spf13/viper/issues) for an issue that matches the one I want to file, without success.
19 required: true
20 - label: I am not looking for support or already pursued the available [support channels](https://github.com/spf13/viper/issues/new/choose) without success.
21 required: true
22 - label: I have checked the [troubleshooting guide](https://github.com/spf13/viper/blob/master/TROUBLESHOOTING.md) for my problem, without success.
23 required: true
24- type: input
25 attributes:
26 label: Viper Version
27 description: What version of Viper are you using?
28 placeholder: 1.8.1
29 validations:
30 required: true
31- type: input
32 attributes:
33 label: Go Version
34 description: What version of Go are you using?
35 placeholder: "1.16"
36 validations:
37 required: true
38- type: dropdown
39 attributes:
40 label: Config Source
41 description: What sources do you load configuration from?
42 options:
43 - Manual set
44 - Flags
45 - Environment variables
46 - Files
47 - Remove K/V stores
48 - Defaults
49 multiple: true
50 validations:
51 required: true
52- type: dropdown
53 attributes:
54 label: Format
55 description: Which file formats do you use?
56 options:
57 - JSON
58 - YAML
59 - TOML
60 - Dotenv
61 - HCL
62 - Java properties
63 - INI
64 - Other (specify below)
65 multiple: true
66- type: input
67 attributes:
68 label: Repl.it link
69 description: Complete example on Repl.it reproducing the issue. [Here](https://repl.it/@sagikazarmark/Viper-example) is an example you can use.
70 placeholder: https://repl.it/@sagikazarmark/Viper-example
71- type: textarea
72 attributes:
73 label: Code reproducing the issue
74 description: Please provide a Repl.it link if possible.
75 render: go
76 placeholder: |
77 package main
78
79 import (
80 "github.com/spf13/viper"
81 )
82
83 func main() {
84 v := viper.New()
85
86 // ...
87
88 var config Config
89
90 err = v.Unmarshal(&config)
91 if err != nil {
92 panic(err)
93 }
94 }
95- type: textarea
96 attributes:
97 label: Expected Behavior
98 description: A clear and concise description of what you expected to happen.
99 validations:
100 required: true
101- type: textarea
102 attributes:
103 label: Actual Behavior
104 description: A clear description of what actually happens.
105 validations:
106 required: true
107- type: textarea
108 attributes:
109 label: Steps To Reproduce
110 description: Steps to reproduce the behavior if it is not self-explanatory.
111 placeholder: |
112 1. In this environment...
113 2. With this config...
114 3. Run '...'
115 4. See error...
116- type: textarea
117 attributes:
118 label: Additional Information
119 description: Links? References? Anything that will give us more context about the issue that you are encountering!
View as plain text