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

include nix install script in the website and remove the redirect (fo… #335

Merged
merged 2 commits into from Mar 13, 2020

Conversation

garbas
Copy link
Member

@garbas garbas commented Mar 11, 2020

…r now)

also:

  • use GITHUB_TOKEN instead of custom GH_TOKEN
  • don't create comment on cron jobs

…r now)

also:
- use GITHUB_TOKEN instead of custom GH_TOKEN
- don't create comment on cron jobs
@garbas garbas requested a review from edolstra March 11, 2020 23:32
@samueldr
Copy link
Member

For those out of the loop, and history spelunkers, can the reason for keeping the script as a website artifact, rather than a redirect, be added to either a comment to the Netlify config, or described in the PR body?

I'm saying this since I don't know, and I've been kinda following what's going on.

@@ -0,0 +1,27 @@
name: "Hourly Build & Deploy to Netlify"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What the difference between this and .github/workflows/main.yml (which also has a cron: '0 * * * *' line)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh sorry, i was suppose to remove cron from main.yml. i'll fix it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean what's the difference? They look very similar. Do we need both?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in cron.yml I also remove github-token to not add comments every hour. it makes listening to notifications on this github repo almost useless. this is the main reason for the split.

@edolstra
Copy link
Member

We probably also need to serve https://nixos.org/releases/nix/nix-<version>/install directly rather than as a redirect, since there are people who are installing it without -L. (We won't need to do that for new releases, just the existing ones.)

@edolstra
Copy link
Member

edolstra commented Mar 12, 2020

@samueldr The reason is that a lot of people are doing curl https://nixos.org/nix/install in scripts rather than curl -L ..., so they break if the file becomes a redirect.

@edolstra
Copy link
Member

BTW breaking curl https://nixos.org/nix/install is not really a big deal since people shouldn't be doing that anyway in scripts (because the version could change in incompatible ways at any time). But the version-specific scripts (https://nixos.org/releases/nix/nix-<version>/install) should continue to work.

@garbas
Copy link
Member Author

garbas commented Mar 12, 2020

@edolstra i will create the redirects. but going forward people should rely on https://releases.nixos.org/nix/nix-<version>/install. I will include this into announcement.

@garbas
Copy link
Member Author

garbas commented Mar 12, 2020

oh actually ... above should also just follow the redirect.

@edolstra edolstra merged commit 419e38b into NixOS:master Mar 13, 2020
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

Successfully merging this pull request may close these issues.

None yet

3 participants