Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Anthony Fok
    @anthonyfok

    This very minor issue arises during Debian packaging, where some Debian Go package maintainers prefer packaging from a release tarball with a nice version number, e.g.

    golang-github-spf13-afero (0.10.0-1)

    rather than a placeholder version "0.0" like this:

    golang-github-spf13-afero (0.0~git20151126.0.12fcb8c-1)

    I personally don't mind either way, but fellow Debian Go package maintainer @tianon, who packaged blackfriday for Debian, prefers packaging from tagged releases, e.g.:

    • golang-blackfriday (1.2-1)
    • golang-blackfriday (1.2-2)

    and then I broke his pattern when I uploaded a new version because Hugo depends on blackfriday's new feature:

    • golang-blackfriday (1.2+git20150720.80.8cec3a8-1)
      • (See also russross/blackfriday#196)

    So @tianon urged me to nudge @russross to tag a release v1.3: russross/blackfriday#198 so he can upload a new version with a nice version number:

    • golang-blackfriday (1.3-1)
    • russross/blackfriday#198

    And ditto for v1.4, haha.

    Anthony Fok
    @anthonyfok
    No, I am not @tianon, so I won't bug you to tag a new release if you don't intend to. <grin>
    However, since you actually list out 0.8.0, 0.9.0 and 0.10.0 for afero but I don't see the corresponding v0.8.0, v0.9.0 and v0.10.0, I thought I should ask. Many thanks! :-)
    Steve Francia
    @spf13
    I'm happy to make a tag. I figured since people don't really use versions in Go yet anyway, it was mostly symbolic. I wasn't thinking about packaging.
    Anthony Fok
    @anthonyfok
    That would be nice, thank you! No hurries though, as I don't need it any time soon, as I have already packaged the latest version as 0.0~git20151210.0.12f79b2-1 (automatically generated by Debian packaging tool https://github.com/Debian/dh-make-golang from the output of git describe) :-)
    Anthony Fok
    @anthonyfok
    Oh, BTW, just to let you know, packages like "golang-github-spf13-afero-dev" exist for the sole purpose of providing dependencies for building other Go .deb packages like docker. Debian end-users are encouraged to use go get to fetch the dependencies.
    One reason for this arrangement is so that Go programs like docker and hugo can be built "reproducibly", with all the dependencies already inside the Debian biosphere, and without accessing the Internet during build time.
    I.e., we cannot use go get or git clone during a Debian package build run.
    Anthony Fok
    @anthonyfok
    Some say this model used by Debian is antiquated and doesn't fit well with the dynamic nature of GitHub et al, but... oh well, that's life, I guess, and the Debian (and Fedora) people have found a way to deal with it, with semi-automatic tools for packaging Go packages, for example.
    And I guess it is kind of good for software archival purpose too. Anyhow, I have swayed off-topic, sorry! :-)
    Martin Bertschler
    @mbertschler
    is v0.10.0 now the right version to tag versions? There was this proposal: golang/go#12302 but it was closed due to people not agreeing.
    Steve Francia
    @spf13
    I believe this is following that proposal (and semver).
    Martin Bertschler
    @mbertschler
    Okay so the main problem point of this proposal was on how to tag multiple packages living in one repo. Since this is not a problem here v{semver} tags are the best choice.
    Martin Bertschler
    @mbertschler
    It's also nice that unlike some of my other libraries (hugo, cobra, viper) it Googles very well.
    Looks like the name just got some competition ;)
    http://techcrunch.com/2015/12/16/afero-uncloaks/ and http://www.afero.io/
    Jerry Jacobs
    @xor-gate
    Hi guys, I just dropped initial sftp backend but i'm a bit stuck how to implement the file interface.
    Jerry Jacobs
    @xor-gate
    Hmm forget the previous "stuck how to implement", finaly got it working :-). spf13/afero#47
    Alexandru Dreptu
    @alexdreptu
    Hi. Is there any way to open / read files from afero mem fs using the std packages os / ioutil etc?
    Bjørn Erik Pedersen
    @bep
    no
    Bradley Weston
    @bweston92
    Any idea why I get bad file descriptor when writing to a file I've just opened?
    Joel Cornett
    @jncornett
    @spf13 Hey I just wanted to express my appreciation for an incredibly powerful abstraction system. Afero is awesome!
    Shawn Adams
    @boris317
    @spf13 Does afero support symbolic links?
    Urjit Singh Bhatia
    @urjitbhatia
    Hey guys, noob, maybe bizarre question - If I implement afero.Fs in my code, is there a way I can run afero_test on that implementation?
    short of copying it...
    Cameron Moore
    @moorereason
    No
    Glyn Normington
    @glynnormington_twitter
    Hi. I just bumped into afero while searching for Go file utilities - looks interesting! My reason for searching is that I implemented a file copy utility (think programmatic equivalent of cp with many of the same features) some years back and recently have been using it in the riff open source project. See the godoc for an idea of what's there: https://github.com/projectriff/riff/tree/master/pkg/fileutils. Since file copying isn't the focus of riff, I'm considering weaning riff off its own file utilities and using something else instead. Has file copying been considered for inclusion in afero? I know there were objections to including a file copy utility in the Go standard library, but I'm hoping those don't apply to a project like afero...
    Glyn Normington
    @glyn
    (signed in again using github instead of Twitter)
    Bjørn Erik Pedersen
    @bep
    File copying isn't the focus of Afero, either.
    Glyn Normington
    @glyn
    Too bad, but thanks for letting me know.
    Fabian Baier
    @baierSF_twitter
    Hi guys, quick question in terms of testing do you have more resources that talk about how testing is been done with afero, maybe examples on how it is being used and tested in a project?
    Cameron Moore
    @moorereason
    Hugo uses afero for all file operations, including tests
    Kasun Vithanage
    @kasvith
    hi, can we mount a local folder to afero? I want to mount one of my local folder(simply make a copy of dir with subdirs to afero) and change one file and create a zip archive
    Carl Berglund
    @CHURLZ
    Hey guys! What a great tool, I could set up testing with afero mem-fs right away. Only thing I'm missing is symlinks, any clues on if this is coming or not?
    Carl Berglund
    @CHURLZ
    @spf13
    Иван Сердюк
    @oceanfish81_twitter
    Hi
    spf13/afero#267 - this project should get some kudos
    Reuben Joslin Coutinho
    @reuben21
    image.png
    any idea as to what i am doing wrong
    Guru Govindan
    @ggovindan
    Hi I am a noob to golang. I am looking to get a file descriptor to file that is opened with Afero. Is it possible?