GithubHelp home page GithubHelp logo

Repo renaming about go-imap HOT 2 CLOSED

mxk avatar mxk commented on June 12, 2024
Repo renaming

from go-imap.

Comments (2)

mxk avatar mxk commented on June 12, 2024

Renaming the package will break existing code, so it's not going to happen. I'm also not aware of any go get requirement to have the package in the root of the repo. Where did you hear that?

Andrews's example is not a very good one. You'll notice that his github link has "golang" as the user or organization, which makes it clear what "oauth2" is. That's not the case for personal repositories and I may want to have a separate py-imap repository later on. Google Code operates at the project level, so what are the odds that /p/oauth2 isn't already taken? You're going to need a unique project name, which is not going to be oauth2, and then you need to satisfy the other requirement to have the last path component match the package name. That's how you end up with goauth2/oauth2.

from go-imap.

xarg avatar xarg commented on June 12, 2024

Fair enough. For go get this is not a requirement - I meant I expected it to be in root. It's a convention I observed. A lot of packages have this pattern: go get github.com/owner/packagename where packagename is the same one as the package packagename. In go-imap's case:

go get github.com/mxk/go-imap
package github.com/mxk/go-imap
    imports github.com/mxk/go-imap
    imports github.com/mxk/go-imap: no buildable Go source files in /home/q/src/github.com/mxk/go-imap

A bit ugly, but not the end of the world.

I really don't want to insist on this as it's not vital. As long as it's clear what the user has to do it's fine with me.

from go-imap.

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.