GithubHelp home page GithubHelp logo

Comments (15)

NikleshPhabiani avatar NikleshPhabiani commented on September 3, 2024

I would want to try out this one.

from startup-os.

oferb avatar oferb commented on September 3, 2024

Ok, go ahead :)

from startup-os.

vmax avatar vmax commented on September 3, 2024

@NikleshPhabiani for reference, you can have a look at how //tools:protoc is implemented. Remember it should work at both platforms (Linux/macOS). Ping me if you need any help 🙂

from startup-os.

NikleshPhabiani avatar NikleshPhabiani commented on September 3, 2024

@vmax . Actually, I did happen to look at how //tools:protoc is implemented a few days back and looked something that would help me out in this issue but haven't looked at it lately. Thanks a lot for the update. Yes, will definitely let you know if I need any help.

from startup-os.

NikleshPhabiani avatar NikleshPhabiani commented on September 3, 2024

A snippet for installation of clang-format on macOS:

platform=$(uname)

if [ "$platform" == "Darwin" ]; then
  mkdir -p ./clang-format
  curl 'http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-apple-darwin.tar.xz' -o './clang-format/clang-format.tar.xz'
  tar xvfj clang-format/clang-format.tar.xz -C ./clang-format
  rm -f ~/bin/clang-format
  ln -s $(pwd)/$(find clang-format | grep bin/clang-format$) ~/bin/clang-format
fi

Reference Link

Is this fine or is something else expected? The other relevant files will be changed but this is just a snippet for installation on the system. Also, which binary from the releases needs to be used for installation on Linux? Thanks.

from startup-os.

oferb avatar oferb commented on September 3, 2024

So the idea is to have bazel get the binary. That way no setup step is needed from the developer.
If you look at https://github.com/google/startup-os/blob/master/tools/BUILD#L36
It uses protoc_bin which is defined in WORKSPACE.

Ohh, and when we say linux, we actually mean Ubuntu :) so "Clang for Ubuntu 16.04".

from startup-os.

oferb avatar oferb commented on September 3, 2024

Hey, how's it going?

from startup-os.

NikleshPhabiani avatar NikleshPhabiani commented on September 3, 2024

Hey. Sorry, couldn't work on this during the week. I will get this done early in the weekend. Oh ok, got it. Thanks a lot. One doubt. What would be the SHA-256 code for these? I couldn't figure out a way yet to retrieve a tag for each.

from startup-os.

oferb avatar oferb commented on September 3, 2024

That's fine, just checking.
About SHA-256, we use this:
https://github.com/google/startup-os/blob/master/WORKSPACE#L1-L2
Thanks again!

from startup-os.

vmax avatar vmax commented on September 3, 2024

@NikleshPhabiani One more SHA-256 tip: if you don't specify it, bazel will print it out on building the target that depends on that archive

from startup-os.

NikleshPhabiani avatar NikleshPhabiani commented on September 3, 2024

Thanks a lot for all the help. I have a doubt regarding YAPF. The release does not have separate versions for Linux and macOS. Is it platform independent and linked directly to Python? Kindly let me know what needs to be done with respect to YAPF.

from startup-os.

vmax avatar vmax commented on September 3, 2024

@NikleshPhabiani it'll be great to use it as http_archive together with writing custom BUILD file with py_binary target in it

from startup-os.

oferb avatar oferb commented on September 3, 2024

clang-format is now fully added. Thanks Niklesh! Do you want to continue this task for YAPF?
I believe that YAPF is platform-independent.

from startup-os.

NikleshPhabiani avatar NikleshPhabiani commented on September 3, 2024

Actually, I am extremely tied up for sometime with university coursework and interviews. Hence, won't be able to pick this up atleast for a couple of days.

from startup-os.

oferb avatar oferb commented on September 3, 2024

That's fine. I created an issue just for yapf #304
You're welcome to take a look, but just know that the python task is a P3 (lower priority), since we don't currently use python. There's other issues that are good first good issue (although you're not a first contributor anymore ;) you're welcome to take a look.

More details about P3 and other priorities: https://developers.google.com/issue-tracker/concepts/issues

from startup-os.

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.