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

Update Add Product Guide #10533

Merged
merged 3 commits into from
May 18, 2023

Conversation

Mab879
Copy link
Member

@Mab879 Mab879 commented May 5, 2023

Description:

Update add products guide.

Rationale:

Make life easier for developers.

@Mab879 Mab879 added the Documentation Update in project documentation. label May 5, 2023
@Mab879 Mab879 added this to the 0.1.68 milestone May 5, 2023
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Used by openshift-ci bot. label May 5, 2023
@openshift-ci
Copy link

openshift-ci bot commented May 5, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@github-actions
Copy link

github-actions bot commented May 5, 2023

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@Mab879 Mab879 marked this pull request as ready for review May 8, 2023 18:18
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Used by openshift-ci bot. label May 8, 2023
@vojtapolasek vojtapolasek self-assigned this May 16, 2023
Copy link
Collaborator

@vojtapolasek vojtapolasek left a comment

Choose a reason for hiding this comment

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

Hello @Mab879 and thank you for this update, it is really helpful because I can imagine it can cause pain for those who try to add new products.
I think that some changes are not needed. Please see my comments.

@@ -411,8 +411,8 @@ MAKEFILE_ID_TO_PRODUCT_MAP = {


5. Create a new file in the product directory called `CMakeLists.txt`:
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure why this line is changed... I think it should stay the same.

@@ -411,8 +411,8 @@ MAKEFILE_ID_TO_PRODUCT_MAP = {


5. Create a new file in the product directory called `CMakeLists.txt`:
```
cat << EOF >> $NEW_PRODUCT/CMakeLists.txt
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see multiple instances of such changes in this PR. But I think they are not correct - this command is using Bash heredoc to insert contents into a file and the change you propose breaks it.
Heredoc is denoted with <<.
https://www.howtogeek.com/719058/how-to-use-here-documents-in-bash-on-linux/

@@ -437,7 +437,7 @@ pkg_manager: "yum"

Copy link
Collaborator

Choose a reason for hiding this comment

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

@Mab879 I think additional .. needs to be here.

Copy link
Member Author

Choose a reason for hiding this comment

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

The update you requested should be in now.

@codeclimate
Copy link

codeclimate bot commented May 17, 2023

Code Climate has analyzed commit 42d7ed4 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 52.5% (0.1% change).

View more on Code Climate.

Copy link
Collaborator

@vojtapolasek vojtapolasek left a comment

Choose a reason for hiding this comment

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

Looks good now. Thank you.

@vojtapolasek vojtapolasek merged commit 04fee0c into ComplianceAsCode:master May 18, 2023
@Mab879 Mab879 deleted the add_product_docs_update branch May 18, 2023 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Update in project documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants