Skip to content

snap on classic branch can't be built #103

@dilyn-corner

Description

@dilyn-corner

https://github.com/snapcore/pc-gadget/blob/f604792d13d7e0cbb0f42d18c333ff654247a311/snapcraft.yaml#L17C63-L17C63

This line should reference ${SNAPCRAFT_PROJECT_DIR}/gadget-${SNAPCRAFT_TARGET_ARCH}.yaml -- ${SNAPCRAFT_PROJECT_DIR} is actually a different location depending on if you're building with --destructive-mode so the file path needs to be explicit.

Build log:

dilyn@Ares:~/work/canonical/pc-gadget -> snapcraft               
Starting Snapcraft 7.5.2.post73+git48bd0632                                                                                                            
Logging execution to '/home/dilyn/.local/state/snapcraft/log/snapcraft-20230829-132113.589633.log'                                                     
Running on amd64 for amd64                                                                                                                             
Launching instance...                                                                                                                                  
Starting instance                                                                                                                                      
Starting Snapcraft 7.5.2.post73+git48bd0632                                                                                                            
Logging execution to '/tmp/snapcraft.log'                                                                                                              
Running on amd64 for amd64                                                                                                                             
Initializing parts lifecycle                                                                                                                           
Executing parts lifecycle...                                                                                                                           
Installing build-packages                                                                                                                              
Installing build-snaps                                                                                                                                 
Executing parts lifecycle: skip pull gadget-yaml (already ran)                                                                                         
Executing action                                                                                                                                       
Executed: skip pull gadget-yaml (already ran)                                                                                                          
Executing parts lifecycle: skip pull grub-prepare (already ran)                                                                                        
Executing action                                                                                                                                       
Executed: skip pull grub-prepare (already ran)                                                                                                         
Executing parts lifecycle: update sources for grub (source changed)                                                                                    
Executing action                                                                                                                                       
Executed: update sources for grub (source changed)                                                                                                     
Executing parts lifecycle: build gadget-yaml                                                                                                           
Executing action                                                                                                                                       
:: + install -m 644 gadget-amd64.yaml /root/project/gadget.yaml                                                                                        
:: install: cannot stat 'gadget-amd64.yaml': No such file or directory                                                                                 
'override-build' in part 'gadget-yaml' failed with code 1.
Review the scriptlet and make sure it's correct.                                            
Failed to execute pack in instance.                                                                                                                    
Full execution log: '/home/dilyn/.local/state/snapcraft/log/snapcraft-20230829-132113.589633.log'    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions