()
| 204 | } |
| 205 | |
| 206 | func (f *functionOptions) getGetReadWriteBucketOptions() []buffetch.GetReadWriteBucketOption { |
| 207 | if f.configOverride != "" { |
| 208 | // If we have a config override, we do not search for buf.yamls or buf.work.yamls, |
| 209 | // instead acting as if the config override was the only configuration file available. |
| 210 | // |
| 211 | // Note that this is slightly different behavior than the pre-refactor CLI had, but this |
| 212 | // was always the intended behavior. The pre-refactor CLI would error if you had a buf.work.yaml, |
| 213 | // and did the same search behavior for buf.yamls, which didn't really make sense. In the new |
| 214 | // world where buf.yamls also represent the behavior of buf.work.yamls, you should be able |
| 215 | // to specify whatever want here. |
| 216 | return []buffetch.GetReadWriteBucketOption{ |
| 217 | buffetch.GetReadWriteBucketWithNoSearch(), |
| 218 | } |
| 219 | } |
| 220 | return nil |
| 221 | } |
no test coverage detected