Coder Social home page Coder Social logo

sue445 / go-mod-tidy-pr Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 2.0 206 KB

Run `go mod tidy` and create PullRequest on GitHub Actions

Home Page: https://github.com/marketplace/actions/go-mod-tidy-pr

License: MIT License

Dockerfile 13.39% Shell 74.16% Go 4.20% Makefile 8.25%
github-actions golang go go-mod

go-mod-tidy-pr's People

Contributors

jlucktay avatar mmailhos avatar sue445 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

go-mod-tidy-pr's Issues

Can't 'go get' from one private module to another

Hi, and thank you for this Action! It fits perfectly with what I was looking for.
I have however hit an issue when using it in one private repo which has a dependency on another private repo in the same org:

go: github.com/TykTechnologies/<private module>@<version>: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /github/home/go/pkg/mod/cache/vcs/d669206005d3cc88f2b9b745ef47b1d7e1b0ae1cdacebe364d6415667e43fa3c: exit status 128:
	fatal: could not read Username for 'https://github.com': terminal prompts disabled

I am providing a token with appropriate permissions through the github_token parameter of the Action, so that's not a problem.

I think it needs something like:

git config --global url."https://$TOKEN:[email protected]".insteadOf "https://github.com"

or

echo "https://$TOKEN:[email protected]" >> ~/.git-credentials
git config --global credential.helper store

in the entrypoint.sh.

Hardcoding golang version to latest causing issue for code with older versions

We are still using go v1.13.4 in our code and it seems to cause some issues when go-mod-tidy-pr is running on the latest v1.14 version.

Here is the error message:

go: errors parsing go.mod:
/github/workspace/go/src/ddb/go.mod:3: usage: go 1.23

It would be great if we can make the go version configurable. Thank you!

timezoneパラメータが無効に思われる

timezoneAsia/Tokyoを指定して利用したところ、プルリクエストのタイトルが下記のようになりました。
go mod tidy at Mon May 18 03:04:31 Asia 2020

おそらく、Dockerイメージにzoneinfoが存在していないためではないかと思います。

FROM ubuntu:19.10

image

image

Error creating pull request: Unauthorized (HTTP 401)

It seems git push is successful, but creating PullRequest is failed...

[go-mod-tidy-20201012070226 40670b8] :put_litter_in_its_place: go mod tidy
 1 file changed, 6 insertions(+), 19 deletions(-)
remote: 
remote: Create a pull request for 'go-mod-tidy-20201012070226' on GitHub by visiting:        
remote:      https://github.com/sue445/gcp-secretmanagerenv/pull/new/go-mod-tidy-20201012070226        
remote: 
To https://github.com/sue445/gcp-secretmanagerenv.git
 * [new branch]      go-mod-tidy-20201012070226 -> go-mod-tidy-20201012070226
Error creating pull request: Unauthorized (HTTP 401)
Requires authentication
github.com password for sue445 (never stored): 

e.g.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.