Git Product home page Git Product logo

wednesday-solutions / go-template Goto Github PK

View Code? Open in Web Editor NEW
26.0 7.0 9.0 110.95 MB

An enterprise GraphQL template application built using Golang showcasing - Testing Strategy, DB migrations and seeding, integration with an ORM, containerization using Docker, GraphQL Interface, PostgreSQL, subscriptions, redis caching, paginated endpoints.

Home Page: https://wednesday.is/building-products

License: MIT License

Go 98.11% Shell 0.97% Dockerfile 0.53% Makefile 0.40%
golang graphql postgres postgresql sqlboiler databases go-boilerplate go-template graphql-relay postgresql-database

go-template's People

Contributors

alichherawalla avatar anasnadeemws avatar dependabot[bot] avatar gang-wednesday avatar himanshu-wedensday avatar ijas-ws avatar praveenchand-wed avatar saurabh-wednesday avatar tushar-ws avatar yash-handa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-template's Issues

Upgrade dependency "github.com/agiledragon/gomonkey"

Background

Repo github.com/wednesday-solutions/go-template depends on github.com/agiledragon/[email protected].

https://github.com/wednesday-solutions/go-template/blob/master/go.mod#L8

However, comparing version v2.2.0 of github.com/agiledragon/gomonkey from proxy.golang.org and github, there are inconsistencies.

commit time of the copy on github.com

"committer": {
      "name": "agiledragon",
      "email": "[email protected]",
      "date": "2021-08-16T15:49:31Z"
    }

commit time of the copy on proxy.golang.org

{"Version":"v2.2.0","Time":"2021-08-13T12:46:58Z"}

So the checksum from the code in github does not match the checksum saved in sum.golang.org. The v2.2.0 tag of github.com/agiledragon/gomonkey might have been retagged after a minor edition on github. I guess you use proxy.golang.org to get dependencies, but that also shows that your project is depending on the copy of github.com/agiledragon/[email protected] before its edition. Depending upon such inconsistent tag version may also result in some unexpected errors as well as build errors due to different proxy settings.

For example, when someone who does not use proxy.golang.org, say GOPROXY=direct, attempts to get github.com/agiledragon/[email protected], the following errors occur.

go: downloading github.com/agiledragon/gomonkey/v2 v2.2.0
go: github.com/agiledragon/gomonkey/v2@v2.2.0: verifying module: checksum mismatch
        downloaded: h1:SXUF5UN7ZH67ORjFK+e1FoFRZczCSVUvwTywNY2+fcg=
        sum.golang.org: h1:QJWqpdEhGV/JJy70sZ/LDnhbSlMrqHAWHcNOjz1kyuI=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

So, this is a reminder in the hope that you can get rid of this unreliable version of project github.com/agiledragon/gomonkey.

Solution

1. Bump the version of dependency github.com/agiledragon/gomonkey

I would recommend bumping the version of github.com/agiledragon/gomonkey to a new release to ensure dependency copy in proxy.golang.org and github in sync.

References

Cross platform pre-commit hook setup

I was trying to setup this template by following the getting started on the README.

I tried running pre-commit-setup.sh with bash but it exited with non-zero return code. brew wasn't found on my system.

Is this template expected to be used on MacOS only? If not can we have the pre-commit installation done by pip? I hope python comes by default on MacOS?

Requesting feedback.

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.