github.com/badrootd/nibiru-cometbft@v0.37.5-0.20240307173500-2a75559eee9b/libs/pubsub/query/peg.go (about)

     1  package query
     2  
     3  // Normally I would use go run,
     4  // but the "Code generated by" comment for peg includes the full arg0,
     5  // which includes an unpredictable temporary directory,
     6  // resulting in a nondeterminstic generated source file.
     7  // Using go build is the workaround as detailed in https://github.com/pointlander/peg/issues/129.
     8  
     9  //go:generate go build -o ./.bin/peg github.com/pointlander/peg
    10  //go:generate ./.bin/peg -inline -switch query.peg