tailhook / vagga

Vagga is a containerization tool without daemons
http://vagga.readthedocs.org
MIT License
1.86k stars 96 forks source link

Anchors and aliases parsing #499

Closed kvasnevskyi closed 6 years ago

kvasnevskyi commented 6 years ago

Not valid parsing of anchors and aliases.

Demo

The code of this kind works correctly, although it should not.

catcontainers:                                                                                                                                                                                                                                
    base:                                                                                                                                                                                                                                     
        setup:                                                                                                                                                                                                                                
            - !Alpine v3.8                                                                                                                                                                                                                    

commands:                                                                                                                                                                                                                                     
    cat: &cat !Command                                                                                                                                                                                                                        
        container: base                                                                                                                                                                                                                       
        run: cat vagga.yaml                                                                                                                                                                                                                   

    ls: &ls !Command                                                                                                                                                                                                                          
        container: base                                                                                                                                                                                                                       
        run: ls /work                                                                                                                                                                                                                         

    all: !Supervise                                                                                                                                                                                                                           
        children:                                                                                                                                                                                                                             
            cat: !Command                                                                                                                                                                                                                     
                *cat                                                                                                                                                                                                                          
            ls: !Command                                                                                                                                                                                                                      
                *ls