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

🚧Create update script #24

Closed
5 tasks done
CalvinWilkinson opened this issue Jun 21, 2024 · 0 comments · Fixed by #25
Closed
5 tasks done

🚧Create update script #24

CalvinWilkinson opened this issue Jun 21, 2024 · 0 comments · Fixed by #25
Assignees
Labels
💎enhancement An improvement on something

Comments

@CalvinWilkinson
Copy link
Member

CalvinWilkinson commented Jun 21, 2024

Complete The Item Below

  • I have updated the title without removing the 🚧 emoji.

Description

Create a script to update the currently installed script.

The script should do the following:

  1. Check if the tool is already installed locally
  2. If it is not installed, show a message and abort
  3. If it is installed, do the following:
    1. Parse out the currently installed version via the URL inside the correct run script based on the operating system.
    2. If on Windows, parse the URL from the cmd file.
    3. If on Linux/macOS, parse the URL from the bash script
    4. The version pulled from the URL is compared to the list of current release tags to determine if an update is required
    5. If an update is not required, display a message
    6. If an update is required, swap the old version with the new latest version

Acceptance Criteria

The items to complete to satisfy the Definition of Done.

ToDo Items

The items to complete to satisfy the Definition of Done.

Issue Dependencies

No response

Related Work

No response

Additional Information:

Unit Tests

Reasons for local unit test execution:

  • Unit tests might pass locally but not in the CI environment during the status check process or vice-versa.
  • Tests might pass on the developer's machine but not necessarily on the code reviewer's machine.
  • If you notice that the test status check has passed but the test failed locally, please notify a project maintainer!

💡Warning💡
If the unit tests pass remotely and are not executed locally, this means we could be letting a bug slip into production.
Though bugs will always exist in some capacity, we should all do our part to help prevent them from happening.

Change Type Labels

Change Type Label
Bug Fixes 🐛bug
Breaking Changes 🧨breaking changes
New Feature ✨new feature
CICD Changes ♻️cicd
Config Changes ⚙️config
Performance Improvements 🏎️performance
Code Doc Changes 🗒️documentation/code
Product Doc Changes 📝documentation/product

Priority Type Labels

Priority Type Label
Low Priority low priority
Medium Priority medium priority
High Priority high priority

Code of Conduct

  • I agree to follow this project's Code of Conduct.
@CalvinWilkinson CalvinWilkinson self-assigned this Jun 21, 2024
@CalvinWilkinson CalvinWilkinson added the 💎enhancement An improvement on something label Jun 21, 2024
@CalvinWilkinson CalvinWilkinson added this to the v1.0.0-preview.2 milestone Jun 21, 2024
CalvinWilkinson added a commit that referenced this issue Jun 21, 2024
CalvinWilkinson added a commit that referenced this issue Jun 21, 2024
* Start work for issue #24

* enhance: create update script

* chore: wrap command in try catch

* docs: update readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💎enhancement An improvement on something
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant