off-topic

https://github.com/clojurians/community-development/blob/master/Code-of-Conduct.md Clojurians Slack Community Code of Conduct. Searchable message archives are at https://clojurians-log.clojureverse.org/
2021-03-11T07:20:28.276100Z

Anyone knows if this might be helpful for the clojure community? OSS Fuzzer https://twitter.com/metzmanj/status/1369696068997414916

2021-03-11T09:59:50.276900Z

https://blog.golang.org/survey2020-results will be interesting to compare with upcoming clojure survey results

1➕
dharrigan 2021-03-11T10:25:19.277300Z

Very interesting

2021-03-11T10:45:59.277800Z

For Windows users, do you need to restart after editing an environment variable like PATH for changes to take effect?

2021-03-11T10:46:22.278200Z

when editing via the environment variables window.

2021-03-11T11:03:44.278300Z

On windows 10 I find I just need to restart the program I want to have the changes take effect in (such as emacs)

2021-03-11T14:07:08.278900Z

i got it yep, i just had to close my powershell window and reopen it

2021-03-11T14:08:12.279100Z

We have had to build some stuff in go at my work. I hate it. ANythign bigger than a trivial project I just don't want to touch golang ever again.

2021-03-11T15:00:40.279300Z

Anyway, golang is one of the quickest growing community and I believe clojure and the team behind it could learn a lot from their yearly survey.

2021-03-11T17:14:54.280Z

So I set up 2FA on my git hub, now when using the command line I need to enter my git username and a token on every push...

2021-03-11T17:15:44.281Z

should i just copy and paste a token into a text file, and use that for all CLI stuff or am I really expected to go to the web page, generate a token, remember what permission boxes I need to tick, then paste that token in every time?

2021-03-11T17:15:48.281300Z

what am I missing?

cassiel 2021-03-11T17:18:10.281700Z

Do you have your SSH key registered with GitHub? Or are you pushing via HTTPS?

1☝️
2021-03-11T17:19:02.282700Z

I'm just pushing via

$ git commit -m "blah"
$ git push
Then it says to enter username, so i enter my git username then it asks for password and I need to paste in a token.

2021-03-11T17:19:44.283200Z

I think becasue of teh 2FA it wont accept my actual password

cassiel 2021-03-11T17:20:02.283500Z

How did you do the initial checkout? Or: what does “`git remote -v`” tell you?

cassiel 2021-03-11T17:21:17.284400Z

(I’ve always used SSH, so if there’s a problem with 2FA and HTTPS check-outs I probably can’t help…)

2021-03-11T17:22:20.284800Z

git remote -v tells me

origin	<https://github.com/stuartstein777/graal-vm-hello-world.git> (fetch)
origin	<https://github.com/stuartstein777/graal-vm-hello-world.git> (push)

2021-03-11T17:22:44.285100Z

the checkout i think i did git clone

pavlosmelissinos 2021-03-11T17:24:41.285400Z

git clone what though? github allows you to use http OR ssh when you clone a repo

2021-03-11T17:25:37.286Z

oh no, i can't remember...

pavlosmelissinos 2021-03-11T17:27:19.287800Z

And when you're done, run git remote origin set-url &lt;ssh url&gt; to override the existing URL for your remote with its ssh counterpart

pavlosmelissinos 2021-03-11T17:34:43.290700Z

Really can't fathom why github went with git clone over https by default, are there any sane developers using it deliberately? 🤷

dpsutton 2021-03-11T17:44:21.292300Z

its a setting on github that is easily changed, it might even remember once you change it once. It's also a sensible default to use https as there's not much confusing stuff (keyrings, ssh keys, ssh agents, etc) and username and password challenge is straightforward. For low friction to onboarding and new developers https is the clear winner. Once everything is in place, ssh is by far nicer

blak3mill3r 2021-03-11T17:48:46.292800Z

Plus you can paste one of those git remote addresses straight into a browser

pavlosmelissinos 2021-03-11T18:01:04.297100Z

Fair enough, my comment was too harsh From what I've seen in practice, this comes up too often and sometimes new git users (especially non-developers that are somewhat involved with git repos) might have already set up 4-5 repos with https. Most of them are not aware there's a better alternative, so they just accept the situation. But yeah, https is definitely easier for newcomers

ghadi 2021-03-11T18:06:14.298700Z

The granularity of access control using tokens is finer than when using ssh identities

1👍
cassiel 2021-03-11T18:09:20.298900Z

At one institution we have a sysadmin who blocks Github over SSH, because it’s “not secure”.

1
alexmiller 2021-03-11T18:11:45.299200Z

there are tradeoffs. ssh does not do host verification. you have to manually verify known hosts by comparing fingerprints (which almost no one actually does)

alexmiller 2021-03-11T18:12:26.299400Z

and you can't do 2FA

alexmiller 2021-03-11T18:12:53.299600Z

https gives you host verification via certificates but you need to manage auth credentials

pavlosmelissinos 2021-03-11T18:22:43.299800Z

> and you can't do 2FA as in you can't add a second factor besides ssh if you want extra security? technically ssh keys with a passphrase are already 2FA (something you have and something you know), right? "something you know" is a weak factor anyway :thinking_face: Valid points overall, thanks. Another reminder to make fewer assumptions 🙂

pavlosmelissinos 2021-03-11T18:32:31.300500Z

Right, another valid point 😅 I'd argue that this is useful for integration with apps but not so much for user access? Has your experience been different?

2021-03-11T18:32:38.300900Z

I have edited git clones initially pulled with https: URLs to change the URL in .git/config files, and everything went smoothly afterwards. (hopefully this is not a case of YMMV, but no promises from me on that)

1👍
ghadi 2021-03-11T18:36:23.301200Z

for CI it is easier to issue tokens than to mint ssh identities

1👍
pavlosmelissinos 2021-03-11T18:38:10.301400Z

No need to manually change stuff in the .git folder (I'm not brave enough to try it!), there's a git command for that: https://git-scm.com/docs/git-remote#Documentation/git-remote.txt-emset-urlem It's a non-issue really, I was just venting, sorry 🙂

ghadi 2021-03-11T19:08:12.302300Z

fwiw a Github employee told me >65% of their git traffic is HTTPS protocol

1😮
dpsutton 2021-03-11T19:09:28.302700Z

oh now i'm super interested to know which authentication method uses more energy

blak3mill3r 2021-03-11T19:44:34.303Z

Yeah, I've done this a lot and it's fine. Git supports multiple remotes with different trees just fine, so it had better handle a different way of accessing the same remote with the same tree...