- 
                Notifications
    
You must be signed in to change notification settings  - Fork 48
 
Place url-scm download files in .bob-download #606
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
Conversation
          Codecov ReportAttention: Patch coverage is  
 
 Additional details and impacted files@@           Coverage Diff           @@
##           master     #606   +/-   ##
=======================================
  Coverage   88.86%   88.86%           
=======================================
  Files          48       48           
  Lines       15474    15551   +77     
=======================================
+ Hits        13751    13820   +69     
- Misses       1723     1731    +8     ☔ View full report in Codecov by Sentry.  | 
    
e1ec2c1    to
    bd6d56c      
    Compare
  
    | 
           Uhh, changing the  I would propose to have the downloaded file not in a magic hidden directory but instead completely outside of   | 
    
          
 I also thought about this. The main reason for placing it inside was the attic logic for workspaces. I'm unsure how to thread the download-folder files if the recipe changes. Simply delete it? Or do we need some attic logic there as well?  | 
    
          
 Good point. Indeed, this will require some extra logic to keep the  
 I think we can simply delete it. The "downloads" directory probably needs to have the same structure as the "workspace". This is required anyway because there might be multiple url SCMs in the same workspace. I guess adding a   | 
    
bd6d56c    to
    81a55e9      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Just some minor nits...
d8004cb    to
    3c2f057      
    Compare
  
    Separate the downloaded files from the extracted files by downloading them into a `download` directory next to the workspace. Also the canary is generated there. The Gzip and XZ-Extractor always extract the files into the directory of the compressed file. Therefor the compressed files is copied into the workspace-directory first. By removing `-k`the compressed files are no longer kept. To trigger a attic move of old workspaces a version information is added to the url-scm spec.
Delete the download directory if the scm-workspace is moved to attic.
3c2f057    to
    c619d27      
    Compare
  
    | 
           Thanks!  | 
    
Separate the compressed input files from the extracted files in the workspace in preparation of bundling the sources.