Giter Club home page Giter Club logo

Comments (5)

dswarbrick avatar dswarbrick commented on May 24, 2024 1

@noahdesu After merging #66, would you mind please running go fmt ./... on the tree? The go-ceph source is in general not formatted as per gofmt, and I didn't want to do that myself in this PR as it would obscure what was actually new code, and what was just reformatting. Maybe you can include a gofmt into the CI pipeline, so as to fail tests if source is not formatted.

from go-ceph.

dotnwat avatar dotnwat commented on May 24, 2024 1

Thanks, that's in the CI now along with fmt fixes.

from go-ceph.

dotnwat avatar dotnwat commented on May 24, 2024

The current plan is to keep go-ceph master branch up-to-date with ceph master, and then fork out branches for versions that have backwards compat issues. I believe the current go-ceph master branch has some deprecations, but we haven't yet cut any branch according to this plan.

So if you'd like to build these wrappers you can submit a PR against the master branch and we'll figure out how to build these other branches in the future.

If you happen to have any opinions about how to handle the compat issues, we are also interested in hearing those. But so far these simple plan has been the consensus.

from go-ceph.

dotnwat avatar dotnwat commented on May 24, 2024

@dswarbrick do you know what the command is to validate with go fmt? I think it go right here https://github.com/ceph/go-ceph/blob/master/entrypoint.sh#L12

from go-ceph.

dswarbrick avatar dswarbrick commented on May 24, 2024

@noahdesu You can use something like gofmt -d -s . which will write a diff to stdout, instead of modifying the files in-place. If the code is already well formatted, this should be an empty string.

Added to travis.yml, it should appear in the script section something like:

script:
  - diff -u <(echo -n) <(gofmt -d -s .)

from go-ceph.

Related Issues (20)

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.