Closed
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