Coder Social home page Coder Social logo

How to contribute to tiedot about tiedot HOT 4 CLOSED

houzuoguo avatar houzuoguo commented on May 18, 2024
How to contribute to tiedot

from tiedot.

Comments (4)

HouzuoGuo avatar HouzuoGuo commented on May 18, 2024

Hello & thank you!

You have done the right thing - after cloning the repository, there is a local copy of tiedot source code and you can freely make code changes, test, and compile.

Do not worry about the package namespace (github.com/.../tiedot) mentioned in main.go, Go will only use the local source code during compilation, formatting and testing.

Remember that Go relies on GOPATH environment variable to discover source code "packages", therefore make sure that the local source code copy lives under the GOPATH.

Here's an example setup:

Prepare environment

export GOPATH=/tmp/mytiedot
mkdir -p /tmp/mytiedot/src/github.com/HouzuoGuo/
cd /tmp/mytiedot/src/github.com/HouzuoGuo

Clone and compile

git clone https://github.com/HouzuoGuo/tiedot.git
cd tiedot
go build

However, in order to push your commits to Github, the usual approach is to "fork" (to make tiedot "your own"), push some commits, and submit a "pull request" to the original project in order to merge your commits. I usually like to avoid the hassle and just enable your commit access to this repository.

What do you have in mind in terms of new features/improvements for tiedot?

from tiedot.

Sekhmet avatar Sekhmet commented on May 18, 2024

Thanks!
When I've cloned my fork i created it in src/github.com/Sekhmet/tiedot.
I should anyways clone this to folder called src/github.com/HouzuoGuo/tiedot (even if it doesn't match my real forked repository) to force Go import good files?

from tiedot.

HouzuoGuo avatar HouzuoGuo commented on May 18, 2024

Assuming that you intend to merge changes back to the original project some point in the future, the fork should not change the package namespace, and Go is not going to fetch source code from remote locations during compilation and testing.

If you wish others to try out your fork, then you need to change the namespace to match your username, so that others may download/compile your source code via go get mechanism.

from tiedot.

Sekhmet avatar Sekhmet commented on May 18, 2024

Thanks!

from tiedot.

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.