Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test : see what's going on with gorootpath in github action #26

Merged
merged 2 commits into from
Dec 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
![logo](docs/revgen_gopher.jpeg)
# revgen
![logo](docs/revgen_gopher.png)

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![ReportCard](https://goreportcard.com/badge/github.com/ejoffe/spr)](https://goreportcard.com/report/github.com/ejoffe/spr)
Expand Down Expand Up @@ -65,7 +64,7 @@ Configuration
- Revgen stores the currently generated hashes in **.revgen.sum**, in general this file doesn't need to be edited. When in doubt, entries from .revgen.sum can be safely removed or the hash edited, they will be recomputed the next time revgen runs.
***
Example .revgen.yml:
```
```yaml
auto_update: true
configs:
- path: super/cool/generator.go
Expand All @@ -84,4 +83,4 @@ License
- [MIT License](LICENSE)

Happy Coding!
-------------
-------------
Binary file removed docs/revgen_gopher.jpeg
Binary file not shown.
Binary file added docs/revgen_gopher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions revgen/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
Expand Down Expand Up @@ -43,6 +44,13 @@ func getGoRootDir() string {
panic(err)
}

fmt.Printf("go root:%s\n", goRootPath)
files, err := ioutil.ReadDir("./")
check(err)
for _, f := range files {
fmt.Println(f.Name())
}

return goRootPath
}

Expand Down