Skip to content

The -codegen-only flag does not generate cmd code. #131

Closed
@dvogel

Description

When using the pushup build -codegen-only flag the _runtime/cmd/main.go templating is not performed. So you get different results from:

pushup build

versus

pushup build -codegen-only
cd build
go build

An example:

$ pushup new thing1
$ cd thing1
$ pushup build

        //                                                                  
     //  //      //////                        //                           
                //    //  //    //    //////  //////    //    //  //////    
               //////    //    //  ////      //    //  //    //  //    //   
              //        //    //      ////  //    //  //    //  //    //    
             //          //////  //////    //    //    //////  //////       
                                                              //            
                                                             //             
$ tree build
build
├── app.go
├── bin
│   └── myproject
├── cmd
│   └── myproject
│       └── main.go
├── default.layout.up.go
├── index.up.go
├── pushup_support.go
├── src
│   └── pages
│       └── index.up
└── static
    ├── htmx.min.js
    └── style.css
$ rm -rf build
$ pushup build -codegen-only

        //                                                                  
     //  //      //////                        //                           
                //    //  //    //    //////  //////    //    //  //////    
               //////    //    //  ////      //    //  //    //  //    //   
              //        //    //      ////  //    //  //    //  //    //    
             //          //////  //////    //    //    //////  //////       
                                                              //            
                                                             //             
$ (cd build && go build)
$ tree build
build
├── app.go
├── default.layout.up.go
├── index.up.go
├── pushup_support.go
├── src
│   └── pages
│       └── index.up
└── static
    ├── htmx.min.js
    └── style.css

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions