This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-11
Channels
- # aleph (50)
- # announcements (20)
- # babashka (68)
- # beginners (70)
- # calva (25)
- # cider (1)
- # clj-kondo (10)
- # cljs-dev (3)
- # clojars (1)
- # clojure (113)
- # clojure-australia (7)
- # clojure-berlin (4)
- # clojure-europe (47)
- # clojure-italy (14)
- # clojure-nl (2)
- # clojure-norway (1)
- # clojure-serbia (5)
- # clojure-spec (11)
- # clojure-uk (8)
- # clojurescript (16)
- # community-development (2)
- # conjure (2)
- # cursive (15)
- # data-oriented-programming (35)
- # datahike (12)
- # datascript (5)
- # datomic (13)
- # duct (7)
- # fulcro (21)
- # graalvm (94)
- # graphql (1)
- # helix (4)
- # honeysql (19)
- # jackdaw (8)
- # jobs (2)
- # jobs-rus (1)
- # leiningen (1)
- # malli (32)
- # missionary (1)
- # mount (1)
- # off-topic (40)
- # perun (2)
- # portal (7)
- # reitit (10)
- # rewrite-clj (26)
- # shadow-cljs (90)
- # spacemacs (29)
- # sql (17)
- # tools-deps (49)
- # wasm (1)
- # xtdb (26)
Anyone knows if this might be helpful for the clojure community? OSS Fuzzer https://twitter.com/metzmanj/status/1369696068997414916
https://blog.golang.org/survey2020-results will be interesting to compare with upcoming clojure survey results
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.
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.
For Windows users, do you need to restart after editing an environment variable like PATH for changes to take effect?
On windows 10 I find I just need to restart the program I want to have the changes take effect in (such as emacs)
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...
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?
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.(I’ve always used SSH, so if there’s a problem with 2FA and HTTPS check-outs I probably can’t help…)
git clone what though? github allows you to use http OR ssh when you clone a repo
@qmstuart Follow these two guides: • https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent • https://docs.github.com/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account
And when you're done, run git remote origin set-url <ssh url>
to override the existing URL for your remote with its ssh counterpart
Really can't fathom why github went with git clone over https by default, are there any sane developers using it deliberately? 🤷
At one institution we have a sysadmin who blocks Github over SSH, because it’s “not secure”.
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)
and you can't do 2FA
https gives you host verification via certificates but you need to manage auth credentials
> 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 🙂
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
Plus you can paste one of those git remote addresses straight into a browser
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
The granularity of access control using tokens is finer than when using ssh identities
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?
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)
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 🙂
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...