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

Enable tool update only for valid distributions #234

Closed

Conversation

udda1996
Copy link
Contributor

Purpose

Enable updating the tool version to the latest in pull command only for valid distributions.

Goals

fixes #233

@codecov
Copy link

codecov bot commented Aug 16, 2022

Codecov Report

Merging #234 (c7ff6fa) into master (cdb5139) will decrease coverage by 0.04%.
The diff coverage is 33.33%.

@@             Coverage Diff              @@
##             master     #234      +/-   ##
============================================
- Coverage     61.95%   61.91%   -0.05%     
  Complexity      212      212              
============================================
  Files            20       20              
  Lines          1154     1158       +4     
  Branches        154      156       +2     
============================================
+ Hits            715      717       +2     
- Misses          353      354       +1     
- Partials         86       87       +1     
Impacted Files Coverage Δ
...ava/org/ballerinalang/command/cmd/PullCommand.java 80.64% <ø> (+1.85%) ⬆️
.../java/org/ballerinalang/command/util/ToolUtil.java 68.33% <33.33%> (-0.24%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@sonarcloud
Copy link

sonarcloud bot commented Jun 7, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 2 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -443,6 +443,9 @@ public static boolean downloadDistribution(PrintStream printStream, String distr
conn.setRequestProperty("testMode", "true");
}
if (conn.getResponseCode() == 302) {
if (!testMode) {
Copy link
Member

Choose a reason for hiding this comment

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

I am wondering should we commit this code as it will be executed in prod as well?
Ideally this could be coming from a diff/patch file where it has to be applied in order to test locally

@keizer619 keizer619 closed this Jul 16, 2024
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.

Unexpected error when using dist pull
2 participants