Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Steve Francia
    @spf13
    ok. I'll put the changes I made back in.. but this time passing all tests :)
    thanks for helping out.
    BTW, exahome looks pretty cool
    Martin Bertschler
    @mbertschler
    Yes please and no problem. Afero is the first public project I am involved with, and so far I am loving it to contribute to a project that is actually used by people. I am happy to help :)
    Steve Francia
    @spf13
    I'm thrilled to have you on board. I think Afero could really make a huge impact in the go community once people realize what it is and what it can do
    I think we are at a really good point and soon others will be contributing more backends and then it will really get exciting
    I've updated it to the more private approach now and it passes all tests
    Martin Bertschler
    @mbertschler
    Thank you. Exahome is my side project. I am still a university student and finish my masters in 7 months and hope to build somthing that I can continue to do (and something that pays my bills) when I am finished.
    Yes I feel too that the interest in this project is growing. It is definitely a tool that a lot of projects can benefit from.
    Steve Francia
    @spf13
    Wow.. you are busy.
    Martin Bertschler
    @mbertschler
    With this project in the last message I meant afero. I feel honored that you gave me write access to the repo as you are kind of a celebrity in the go community.
    Steve Francia
    @spf13
    I'm honored you've taken an interest in my work and am happy to have you helping.
    Anthony Fok
    @anthonyfok
    Hi @spf13, thank you for fixing afero!
    Just one comment: I see that you actually have a release note for afero with version numbers, the latest being 0.10.0, but there are no corresponding version tags in the Git repository. Is that intentional?

    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)

    Anthony Fok
    @anthonyfok

    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