-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
updating jetbrains channels; made unknown channel error non-fatal #29312
Conversation
I guess I can understand leaving the script as fatal if there are errors updating a block, but it seems a bit too unfriendly for someone running the script the first time and just wanting to get one of the more commonly used IDEs up-to-date. |
die "no version in $block" unless $version; | ||
if ($version eq $latest_versions{$channel}) { | ||
print("$channel is up to date at $version\n"); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mix spaces and tabs here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 removing tabs now
cc @volth |
Sorry if I did, was editing on a system I don't use very much. Will try to
fix soon.
…On Wed, Sep 13, 2017 at 5:14 PM, Jörg Thalheim ***@***.***> wrote:
cc @volth <https://github.com/volth>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#29312 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA37jqojMDyz45UHxV5Q5YY4qFUB3zWdks5siEWsgaJpZM4PWIFX>
.
--
Brandon Barker
brandon.barker@gmail.com
|
description = "A cross-platform .NET IDE based on the IntelliJ platform and ReSharper"; | ||
license = stdenv.lib.licenses.unfree; | ||
src = fetchurl { | ||
url = "https://download.jetbrains.com/resharper/Rider-RC-${version}.tar.gz"; | ||
sha256 = "37bad69cdfcc4f297b2500a7bb673af7ef8f1fd45baa4eb2fa388d2c4bcb41ee"; /* updated by script */ | ||
url = "https://download.jetbrains.com/resharper/JetBrains.Rider-${version}.tar.gz"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get an 403 for this url: https://download.jetbrains.com/resharper/JetBrains.Rider-171.4456.3271.tar.gz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, thanks for catching that, fixed
bd1a057
to
0892235
Compare
($sha256) = get("$url.sha256") =~ /^([0-9a-f]{64})/; | ||
$version_string = $full_version; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation :)
Can please also make one commit per update. I want to backport some of the updates to 17.03 and most updates to 17.09. |
@Mic92 Not sure I follow on how exactly you want the commits done, as there are already multiple commits - do you mean you to squash them into one update for this PR? |
You can use
The perl script update can be just one commit. And then just do git-push force. |
Ah, I see. Normally I'd say yes but I'm super busy this week with some work
deadlines and won't get a chance - please feel free to do this. I just used
a local intelliJ derivation in my nix-env as a failsafe to get something
going in my nix environment.
…On Fri, Sep 15, 2017 at 3:02 PM, Jörg Thalheim ***@***.***> wrote:
You can use git-reset to undo the commits and then add one commit per
package update, with commit messages in the following style:
- clion: 2017.2.1 -> 2017.2.2
- gogland: 172.3757.46 -> 172.3968.45
The perl script update can be just one commit. And then just do git-push
force.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#29312 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA37jmre6AB3q8mW8aBl9IVE-9KuzKZkks5sisnLgaJpZM4PWIFX>
.
--
Brandon Barker
brandon.barker@gmail.com
|
A quick question/suggestion - would it be possible to utilized the nix CI
to do some of this manually, and generate pull requests automatically using
the github API?
On Mon, Sep 18, 2017 at 6:02 PM, Brandon Barker <brandon.barker@gmail.com>
wrote:
… Ah, I see. Normally I'd say yes but I'm super busy this week with some
work deadlines and won't get a chance - please feel free to do this. I just
used a local intelliJ derivation in my nix-env as a failsafe to get
something going in my nix environment.
On Fri, Sep 15, 2017 at 3:02 PM, Jörg Thalheim ***@***.***>
wrote:
> You can use git-reset to undo the commits and then add one commit per
> package update, with commit messages in the following style:
>
> - clion: 2017.2.1 -> 2017.2.2
> - gogland: 172.3757.46 -> 172.3968.45
>
> The perl script update can be just one commit. And then just do git-push
> force.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#29312 (comment)>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/AA37jmre6AB3q8mW8aBl9IVE-9KuzKZkks5sisnLgaJpZM4PWIFX>
> .
>
--
Brandon Barker
***@***.***
--
Brandon Barker
brandon.barker@gmail.com
|
@volth AFAICT the chromium stuff is in base32, as is the majority of hashes in nixpkgs, as well as previous jetbrains/idea expressions. The reason is simple, base32 is more compact for manual edits and we're not really supposed to add generator scripts such as this into the tree, even though we continue to do so. This is also why we have |
@volth that stuff gets merged without proper vetting, or by slip up, isn't an excuse for not doing the right thing when called upon. Neither is it psychologically pleasant to argue silly stuff like hash bases with contributors. |
|
@Mic92 Sorry I don't understand what you mean, can you elaborate. I've just updated the generator to encode hashes as base32. |
Cherry-picked appropriate changes in 14f2e0c |
done in e4a859a |
Motivation for this change
Needed to update Jetbrains channels; newer builds are available from JetBrains, some older builds are not.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)