Skip to content

Missing functions #3

Open
Open

Description

@dominikh

The following Augeas functions aren't currently implemented and should probably be added:

  • aug_label
  • aug_cp
  • aug_rename
  • aug_text_store
  • aug_text_retrieve
  • aug_escape_name
  • aug_transform
  • aug_srun

Looking for volunteers to contribute those functions.

Activity

  1. raphink commented on Mar 29, 2016

    @raphink
    Contributor

    I'd love to have Srun right now 😉

  2. raphink commented on Mar 29, 2016

    @raphink
    Contributor

    @dominikh I just wrote https://github.com/raphink/go-augeas/commit/13670f8d56e63c69e4bbef7a1aaadecbff4fcf19 but I can't build it, go doesn't seem to find pkg-config info:

    $  go tool cgo augeas.go 
    In file included from /home/rpinson/go/src/github.com/raphink/go-augeas/augeas.go:8:0:
    /usr/include/augeas.h:24:25: fatal error: libxml/tree.h: No such file or directory
    compilation terminated.
    
  3. dominikh commented on Mar 29, 2016

    @dominikh
    OwnerAuthor

    @raphink Is there a reason you're invoking go tool cgo directly? That's an internal tool used by go build, and will expect certain flags. The pkg-config logic is handled elsewhere as far as I know.

  4. raphink commented on Mar 30, 2016

    @raphink
    Contributor

    go build has another issue...

    can't load package: package github.com/raphink/go-augeas: code in directory /home/rpinson/go/src/github.com/raphink/go-augeas expects import "honnef.co/go/augeas"
    

    I'm still not really sure about the best way to do PRs on Go projects, since they explicitely declare online dependencies.

  5. dominikh commented on Mar 30, 2016

    @dominikh
    OwnerAuthor
  6. raphink commented on Mar 31, 2016

    @raphink
    Contributor

    Interesting, thanks.

  7. raphink commented on Mar 31, 2016

    @raphink
    Contributor

    So I managed to get it to build... But I'm stuck with this IO_FILE object now... https://github.com/raphink/go-augeas/blob/srun/augeas.go#L211 any clue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions