Closed SpencerDawkins closed 2 weeks ago
Edit: Removing lib/
might clean this up. But then, if you are on a fresh machine, maybe not.
That setup looks pretty good to me. I updated to 24.04 myself yesterday and while the upgrade did not exactly go smoothly, I can't report similar errors.
That message from /usr/bin/env
is a bit of a telltale though. It suggests that some of the scripts are being checked out with Windows line endings. That's highly likely to cause some odd stuff to happen.
Now, as to why that is happening, that's where things get interesting.
The most likely thing is that git is configured to do some stuff it probably shouldn't. Run git config --list
and check for the following:
core.autocrlf
-- it's possible that this is "true", which could be causing this issue if git thinks that files should have crlf endings; I set this to falsecore.eol
-- again, it is possible that this is set to "crlf", which is problematic; I keep this unsetcore.safecrlf
-- this should be unsetYou can set these with something like git config --global core.autocrlf false
.
The first is likely the problem. There are files in this repository that use CRLF line endings, so git might have inferred something about line endings that it shouldn't have.
It's possible that having a .gitattributes
file would avoid this sort of problem. But this is the first I've encountered this issue. It's always something new.
@martinthomson -
Thank you for your kindness.
Tl;dr - You Got Me Where I Needed To Go.
Just FYI, I recorded what I saw, as I worked through your responses, just in case anyone else finds my experience applicable.
core.repositoryformatversion=0 core.filemode=false core.bare=false core.logallrefupdates=true core.symlinks=false core.ignorecase=true submodule.active=. remote.origin.url=https://github.com/mengelbart/rtp-over-quic-draft.git remote.origin.fetch=+refs/heads/:refs/remotes/origin/ branch.main.remote=origin branch.main.merge=refs/heads/main submodule.lib.url=https://github.com/martinthomson/i-d-template lfs.repositoryformatversion=0
So, none of the core.* attributes you listed seem to be set.
Given that none of them were set at all, I will likely experiment further, with global configuration, which you pointed out to me, but they weren't set at all, so I didn't chase that immediately.
This diff contains a change in line endings from 'LF' to 'CRLF'.
(whut? I was changing from 'CRLF' to 'LF'!)
but Notepad++ now thinks the line ends are LF, so, fine.
You were pointing me in the general direction of git attributes, about which I know little, so I googled that, and found https://docs.gitlab.com/ee/user/project/repository/files/git_attributes.html (yeah, I know, gitlab isn't github), which said this:
If applying this configuration to an existing repository, files may need to be touched and recommitted if the local copy has the correct encoding but the repository does not. This can be performed for the whole repository by running git add --renormalize ..
That seemed useful, so I tried "git add --renormalize ..", and got
fatal: ..: '..' is outside repository at '/mnt/c/Users/spenc/OneDrive/Documents/GitHub/rtp-over-quic-draft'
I have been using directories in the Windows file system for GitHub repos, and I couldn't tell you why, but I do, so I changed ".." to "*" and tried again.
THAT allowed me to "make" my draft in git.
But I'm up and working again. Thank you.
This MIGHT be a near-duplicate of #382, but I'm using a different version of Ubuntu (24.04, #382 used 22.04). If so, my apologies.
I'm starting with a new WSL installation of Ubuntu 24.04, and I've added these packages:
When I clone https://github.com/SpencerDawkins/sdp-roq, cd to my local directory, and type "make", I get this:
When I ls -al in lib/.venv/bin, I get this:
so pip and .initialized-with-Makefile.venv do seem to be missing.
Thank you in advance for your help, of course!