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
{{ message }}
Repository navigation
Concourse extension confused by docker-image resource type #196
The error is not really because the name and type are the same (this odd also, but I don't think we actually check for this). The reason it gives the error is because the name in name: docker-image is already defined as a resource type.
I can probably add some sort of a check to special case built-in resource types like docker-image and allow them to be redefined. Is there a good reason why you want to do something like this? It seems a bit odd and circular to me. Why couldn't you just call it my-docker-image or custom-docker-image or something like that? Wouldn't that actually be cleaner than overwriting an existing resource type?
Anyhoo, I can probably make this error 'go away'. I'd just like to understand a bit better first... to make sure it is really a good idea to forego the check.
Thanks for the quick answer!
The use case is the same than overwriting another built-in resource like s3 or git: use in the pipeline the new version, obtained from the docker registry, and not the built-in. The reason to do so can be:
use a new feature of the resource
a bugfix
testing a specific version, maybe a fork, of the resource itself
Yes... and no. I guess if I was going to use an alternate implementation, of a builltin resource type, I'd probably just give it a different name. Anyhoo, I guess that's just me. Seems like, though this probably not common, we should probably assume people may do this kind of redefinition, and it shouldn't be flagged as a error by the editor.
Activity
kdvolder commentedon Feb 4, 2019
The error is not really because the name and type are the same (this odd also, but I don't think we actually check for this). The reason it gives the error is because the name in
name: docker-imageis already defined as a resource type.I can probably add some sort of a check to special case built-in resource types like
docker-imageand allow them to be redefined. Is there a good reason why you want to do something like this? It seems a bit odd and circular to me. Why couldn't you just call itmy-docker-imageorcustom-docker-imageor something like that? Wouldn't that actually be cleaner than overwriting an existing resource type?Anyhoo, I can probably make this error 'go away'. I'd just like to understand a bit better first... to make sure it is really a good idea to forego the check.
marco-m commentedon Feb 4, 2019
Thanks for the quick answer!
The use case is the same than overwriting another built-in resource like
s3orgit: use in the pipeline the new version, obtained from the docker registry, and not the built-in. The reason to do so can be:Does it make sense?
kdvolder commentedon Feb 4, 2019
Yes... and no. I guess if I was going to use an alternate implementation, of a builltin resource type, I'd probably just give it a different name. Anyhoo, I guess that's just me. Seems like, though this probably not common, we should probably assume people may do this kind of redefinition, and it shouldn't be flagged as a error by the editor.
concourse: Allow redefinition of built in resource types
marco-m commentedon Feb 5, 2019
Wow thanks @kdvolder I appreciate!