Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: error messages when doing a transform using a remote git repo url #1110

Open
HarikrishnanBalagopal opened this issue Dec 2, 2023 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@HarikrishnanBalagopal
Copy link
Contributor

HarikrishnanBalagopal commented Dec 2, 2023

Describe the bug

Several errors are thrown while processing path mappings with a remote repo URL

To Reproduce
Steps to reproduce the behavior:

Shown below with --qa-skip but the errors also show up when doing an interactive transform:

$ move2kube transform -s "git+https://github.com/konveyor/move2kube.git" --qa-skip
INFO[0000] Cloning the repository using git into /var/folders/81/pzmd85sj2d9dg02xgmd7wlhr0000gn/T/move2kube2108463736/m2ksources. This might take some time. 
INFO[0003] Configuration loading done                   
INFO[0003] Start planning                               
INFO[0003] Planning started on the base directory: '/var/folders/81/pzmd85sj2d9dg02xgmd7wlhr0000gn/T/move2kube2108463736/m2ksources/konveyor/move2kube.git' 
INFO[0003] [ComposeAnalyser] Planning                   
INFO[0003] Identified 3 named services and 0 to-be-named services 
INFO[0003] [ComposeAnalyser] Done                       
INFO[0003] [DockerfileDetector] Planning                
INFO[0004] Identified 1 named services and 12 to-be-named services 
INFO[0004] [DockerfileDetector] Done                    
INFO[0004] [CloudFoundry] Planning                      
INFO[0004] [CloudFoundry] Done                          
INFO[0004] [Base Directory] Identified 4 named services and 12 to-be-named services 
INFO[0004] Planning finished on the base directory: '/var/folders/81/pzmd85sj2d9dg02xgmd7wlhr0000gn/T/move2kube2108463736/m2ksources/konveyor/move2kube.git' 
INFO[0004] Planning started on its sub directories      
INFO[0004] Identified 1 named services and 0 to-be-named services in . 
INFO[0004] Identified 1 named services and 0 to-be-named services in . 
INFO[0004] Planning finished on its sub directories     
INFO[0004] [Directory Walk] Identified 6 named services and 12 to-be-named services 
INFO[0004] [Named Services] Identified 5 named services 
INFO[0004] Planning done. Number of services identified: 5 
INFO[0004] Starting transformation                      
INFO[0004] Found multiple transformation options for the service 'api'. Selecting the first valid option. 
INFO[0004] Using the transformation option 'ComposeAnalyser' for the service 'api'. 
INFO[0004] Found multiple transformation options for the service 'move2kube'. Selecting the first valid option. 
INFO[0004] Using the transformation option 'Golang-Dockerfile' for the service 'move2kube'. 
INFO[0004] Using the transformation option 'Ruby-Dockerfile' for the service 'move2kube-git'. 
INFO[0004] Using the transformation option 'ComposeAnalyser' for the service 'redis'. 
INFO[0004] Found multiple transformation options for the service 'web'. Selecting the first valid option. 
INFO[0004] Using the transformation option 'ComposeAnalyser' for the service 'web'. 
INFO[0004] Iteration 1                                  
INFO[0004] Iteration 2 - 5 artifacts to process         
INFO[0004] Transformer 'ComposeAnalyser' processing 3 artifacts 
ERRO[0004] path /var/folders/81/pzmd85sj2d9dg02xgmd7wlhr0000gn/T/move2kube2108463736/m2ksources/konveyor/move2kube.git/samples/docker-compose points to a unknown path. Removing the path 
ERRO[0004] failed to process all the paths for the object of type *[]transformer.PathMapping and value &[{Type:Source SrcPath:/var/folders/81/pzmd85sj2d9dg02xgmd7wlhr0000gn/T/move2kube2108463736/m2ksources/konveyor/move2kube.git/samples/docker-compose DestPath:source TemplateConfig:<nil>} {Type:Source SrcPath:/var/folders/81/pzmd85sj2d9dg02xgmd7wlhr0000gn/T/move2kube2108463736/m2ksources/konveyor/move2kube.git/samples/docker-compose DestPath:source TemplateConfig:<nil>}] . Error: "failed to process the paths for the object of type *[]transformer.PathMapping and value &[{Type:Source SrcPath:/var/folders/81/pzmd85sj2d9dg02xgmd7wlhr0000gn/T/move2kube2108463736/m2ksources/konveyor/move2kube.git/samples/docker-compose DestPath:source TemplateConfig:<nil>} {Type:Source SrcPath:/var/folders/81/pzmd85sj2d9dg02xgmd7wlhr0000gn/T/move2kube2108463736/m2ksources/konveyor/move2kube.git/samples/docker-compose DestPath:source TemplateConfig:<nil>}] . Error: \"failed to convert /var/folders/81/pzmd85sj2d9dg02xgmd7wlhr0000gn/T/move2kube2108463736/m2ksources/konveyor/move2kube.git/samples/docker-compose Error: \\\"path /var/folders/81/pzmd85sj2d9dg02xgmd7wlhr0000gn/T/move2kube2108463736/m2ksources/konveyor/move2kube.git/samples/docker-compose points to a unknown path. Removing the path\\\"\"" 
INFO[0004] Transformer 'ZuulAnalyser' processing 1 artifacts 

Expected behavior

There should be no errors

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

$ move2kube version -l
version: v0.3.0+unreleased
gitCommit: af4d50b1e5522c2a41c34894aa8cf433f5845bb9
gitTreeState: clean
goVersion: go1.21.0
platform: darwin/arm64
@HarikrishnanBalagopal HarikrishnanBalagopal added the kind/bug Categorizes issue or PR as related to a bug. label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
Status: Backlog
Development

No branches or pull requests

1 participant