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 actions/checkout in GitHub Actions workflows to v3 #151

Merged

Conversation

striezel
Copy link
Contributor

Updates the actions/checkout action used in the GitHub Actions workflows to its newest version.

Changes in actions/checkout:

v3.0.2

  • Add input set-safe-directory

v3.0.1

  • Fixed an issue where checkout failed to run in container jobs due to the new git setting safe.directory
  • Bumped various npm package versions

v3.0.0

  • Update to node 16

As far as I can tell this should all be backwards compatible, so I do not expect any breakage.

@striezel
Copy link
Contributor Author

FYI, the linting errors are fixed in PR #152.

If you wish so, I can rebase this PR after #152 gets merged. That should take care of the failing checks here.

@TobiasBengtsson
Copy link
Collaborator

TobiasBengtsson commented Sep 28, 2022

@striezel Sorry for the delay, #152 is now merged so you can rebase on top of latest master.

EDIT: looks like we have new failures instead, ideally I'll have time to fix them today

@striezel
Copy link
Contributor Author

striezel commented Sep 28, 2022

@TobiasBengtsson:

EDIT: looks like we have new failures instead, ideally I'll have time to fix them toda

I made another pull request for those warnings: #157

Not sure what the actual reason for those new warnings is, but a new version of clippy (and Rust) was released after #152 was created, so maybe that could be it?

PS: After taking a closer look, the failure occurred on a build using the nightly channel of Rust, so it was not the new stable release but some change from nightly.

@ptondereau
Copy link
Collaborator

BTW, I think we should only run clippy on stable version

@TobiasBengtsson
Copy link
Collaborator

Yes, we are using the nightly and it breaks way too often. I agree it would be better to let clippy run on stable

@striezel
Copy link
Contributor Author

@striezel Sorry for the delay, #152 is now merged so you can rebase on top of latest master.

Don't worry, I had worse. :D Less than a month is still OK.
(My current record PR will hit three years this weekend without a reply from the maintainer - who is still active on GitHub, but does not seem to bother about PRs.)

I just rebased this PR on top of the current master branch. Those checks should pass now.

@striezel
Copy link
Contributor Author

OK, failed with a different error this time, and it's not clippy:

error: Unknown `#[clap(long)]` attribute (`#[arg(long)] exists)
  --> crates/cli/src/lib.rs:92:12
   |
92 |     #[clap(long)]
   |            ^^^^

error: Unknown `#[clap(long)]` attribute (`#[arg(long)] exists)
   --> crates/cli/src/lib.rs:115:12
    |
115 |     #[clap(long)]
    |            ^^^^

error: Unknown `#[clap(short)]` attribute (`#[arg(short)] exists)
   --> crates/cli/src/lib.rs:134:12
    |
134 |     #[clap(short, long)]
    |            ^^^^^

error: could not compile `cargo-php` due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
Error: Process completed with exit code 101.

Unfortunately, I cannot reproduce this on my local machine, so I am not sure that I can provide a fix for that, too.

@striezel
Copy link
Contributor Author

OK, scratch that last comment about not providing a fix.

I attempted to fix those errors in #158 and so far it looks good, builds are passing.
(Spoiler alert: A new major release of clap, version 4.0.0, was released a few hours ago earlier today, and that caused the build to break.)

So I will rebase this PR gain, if #158 is merged.

striezel added a commit to striezel-stash/ext-php-rs that referenced this pull request Sep 28, 2022
Sparked by the comments about nightly clippy breaking the build
too often (see <davidcole1340#151 (comment)>),
this change will limit clippy to builds with a stable Rust
version only.
striezel added a commit to striezel-stash/ext-php-rs that referenced this pull request Sep 28, 2022
Sparked by the comments about nightly clippy breaking the build
too often (see <davidcole1340#151 (comment)>),
this change will limit clippy to builds with a stable Rust
version only.
@striezel
Copy link
Contributor Author

So I will rebase this PR gain, if #158 is merged.

Rebased.

@TobiasBengtsson TobiasBengtsson merged commit 199962c into davidcole1340:master Sep 28, 2022
@striezel striezel deleted the gh-action-update branch September 28, 2022 21:32
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.

None yet

3 participants