Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stranged HOME_PATH format #17

Closed
blaggacao opened this issue Jul 25, 2020 · 5 comments
Closed

Stranged HOME_PATH format #17

blaggacao opened this issue Jul 25, 2020 · 5 comments

Comments

@blaggacao
Copy link

direnv/direnv#654 (comment)

@xzfc would you agree to have a quick look at what I observed when using with direnv? Maybe you can see at first sight why a few \n are inserted where direnv doesn't expect them and if it's legit and on which part to fix?

@xzfc
Copy link
Owner

xzfc commented Jul 26, 2020

It seems that you have shellHook in shell.nix that echoes extra lines to stdout?

It's a bug in cached-nix-shell: it doesn't expect anything extra in the output of nix-shell --run 'env -0'. I'll fix it. In the meantime, you can wrap shellHook into {} 1>&2 to redirect its output to stderr.

@blaggacao
Copy link
Author

blaggacao commented Jul 26, 2020

Yep:

    export KUBECTL_EXTERNAL_DIFF=delta
    git config git-town.code-hosting-driver gitea
    git config git-town.code-hosting-origin-hostname git.p1.rocks
    git config git-town.main-branch-name master
    just help

I print out the just help recipe for better onboarding. Your analysis is spot-on black magic. Thank you! 👍

There, they are, the \ns:

$ nix-shell --run 'env -0'
warning: unknown setting 'experimental-features'
nix-pre-commit-hooks: hooks up to date



# -------------------------------------
# Task Runner
# -------------------------------------
# show recipes with: `just --list`


# -------------------------------------
# Conventional Commits
# -------------------------------------
# Only well-formatted commits shall
# land in master branch.
# -------------------------------------
# `cz commit` to commit
# `cz info` to show the info
# `cz schema` to show the schema
# `cz example` to show an example


# -------------------------------------
# GitTown for collaboration
# -------------------------------------
# `git town sync` - synch everything
# `git town hack` - start new feature
# `git town` - list all commands


HOST_PATH[...]

@blaggacao
Copy link
Author

just help 1>&2 worked around! Thank you!

@xzfc
Copy link
Owner

xzfc commented Jul 27, 2020

Should be fixed in the current master.

@blaggacao
Copy link
Author

It is fixed. Thank you! Looks so much better 😄 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants