Commit ddb708f
authored
Stop Decorator Running When Dry Run Set (#371)
Currently, decorators still run even when dry run is set
in the container (see Fx issue: uber-go/fx#1018)
This changes decorators to use the scope's invoker when decorating,
causing it to fill-in zero-valued results instead of actually running the function
when the dry run option is set.1 parent cdbd7eb commit ddb708f
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2050 | 2050 | | |
2051 | 2051 | | |
2052 | 2052 | | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
2053 | 2069 | | |
2054 | 2070 | | |
2055 | 2071 | | |
| |||
0 commit comments