Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

fix: fix missing configuration file in distribution archives #371

Merged
merged 2 commits into from Jan 26, 2021

Conversation

difince
Copy link
Member

@difince difince commented Jan 25, 2021

Signed-off-by: Diana Atanasova dianaa@vmware.com

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-cli/blob/master/.github/Contributing.md.

What is the current behavior?

Issue Number:

What is the new behavior?

  • configuration.toml file under project's /res dir is renamed to
    ./sample-configuration.toml file
  • the configuration.toml file under $home/.edgex-cli directory is /n
    created on the fly by the code using as a template ./sample-configuration.toml file
    if it does not exists
  • one of the unit test is removed as not relevant anymore
  • All executables within distribution archives have the same name of: edgex-cli
  • Cleaning up Makefile of references to res/configuration.toml
    (build, install and clean targets)
  • updated snap to levarage sample-configuration.toml file

Does this PR introduce a breaking change?

  • Yes
  • No

New Imports

  • Yes
  • No

Specific Instructions

Are there any specific instructions or things that should be known prior to reviewing?

Other information

@difince difince requested a review from mkbhanda January 25, 2021 17:45
@codecov-io
Copy link

codecov-io commented Jan 25, 2021

Codecov Report

Merging #371 (4b89f1c) into hanoi (796f864) will increase coverage by 10.20%.
The diff coverage is 48.14%.

Impacted file tree graph

@@             Coverage Diff             @@
##            hanoi     #371       +/-   ##
===========================================
+ Coverage   14.51%   24.71%   +10.20%     
===========================================
  Files           3        3               
  Lines          62       89       +27     
===========================================
+ Hits            9       22       +13     
- Misses         53       62        +9     
- Partials        0        5        +5     
Impacted Files Coverage Δ
config/configuration.go 57.89% <48.14%> (-23.93%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 796f864...4b89f1c. Read the comment docs.

@difince difince force-pushed the hanoi branch 2 times, most recently from 4c02a9a to 626b660 Compare January 25, 2021 18:39
- configuration.toml file under project's /res dir is renamed to
./sample-configuration.toml file
- the configuration.toml file under $home/.edgex-cli directory is
created on the fly by the code using as a template ./sample-configuration.toml file
if it does not exists
- one of the unit test is removed as not relevant anymore
- All executables within distribution archives have the same name of: edgex-cli
- Cleaning up Makefile of references to res/configuration.toml
(build, install and clean targets)
- updated snap to levarage sample-configuration.toml file

Signed-off-by: Diana Atanasova <dianaa@vmware.com>
Do not create /res directory in GOBIN. This is a place for
executables only.
add "@" when echo, thus removing double printing the message

Signed-off-by: Diana Atanasova <dianaa@vmware.com>
Copy link
Contributor

@mkbhanda mkbhanda left a comment

Choose a reason for hiding this comment

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

LGTM

@mkbhanda mkbhanda merged commit 6b6ab8b into edgexfoundry:hanoi Jan 26, 2021
@difince difince deleted the hanoi branch January 27, 2021 17:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants