Currently, the unique name for a source file is derived from the resources field such that a path of ../../.source/path/to/deployment.yaml would end up producing a source file name of source_path_to_deployment.go. We should implement the following logic:
attempt to use the filename only
in the event the filename has already been taken, use the full path
In the above scenario, the file name would be deployment.go and only if another file named deployment.yaml existed anywhere in the resources declaration would the full path be used.
Currently, the unique name for a source file is derived from the
resources
field such that a path of../../.source/path/to/deployment.yaml
would end up producing a source file name ofsource_path_to_deployment.go
. We should implement the following logic:In the above scenario, the file name would be
deployment.go
and only if another file nameddeployment.yaml
existed anywhere in theresources
declaration would the full path be used.