-
Notifications
You must be signed in to change notification settings - Fork 16
update to rust 1.84 #1011
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
Merged
Merged
update to rust 1.84 #1011
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c1b9aaf
update to rust 1.84
ChristianBeilschmidt b2ab3ff
update arrow
ChristianBeilschmidt 175b099
update minor stuff
ChristianBeilschmidt e2b1876
ran cargo update
ChristianBeilschmidt 363dd6b
update sqlfluff
ChristianBeilschmidt 526990f
update OIDC from 3 to 4
ChristianBeilschmidt 3ef9f05
Merge pull request #1012 from geo-engine/update-oidc-3-to-4
michaelmattig e1b432a
update readme
ChristianBeilschmidt f5a017f
Merge branch 'main' of github.com:geo-engine/geoengine into update-20…
ChristianBeilschmidt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| #!/usr/bin/env -S cargo +nightly -Zscript | ||
|
|
||
| ---cargo | ||
| [package] | ||
| edition = "2024" | ||
|
|
||
| [dependencies] | ||
| tempfile = "3.15" | ||
| --- | ||
| //! This script updates the dependencies for the `expression/deps-workspace` by performing the following steps: | ||
| //! | ||
| //! 1. Creates a temporary directory. | ||
| //! 2. Copies all files from the `expression/deps-workspace` directory to the temporary directory. | ||
| //! 4. Runs `cargo update` in the temporary directory to update the dependencies. | ||
| //! 5. Copies the updated `Cargo.lock` file back to the `expression/deps-workspace` directory. | ||
| //! | ||
| //! If any step fails, the script will print an error message and exit with a non-zero status code. | ||
|
|
||
| use std::fs; | ||
| use std::path::Path; | ||
|
|
||
| fn main() { | ||
| let temp_dir = tempfile::tempdir().unwrap(); | ||
|
|
||
| let deps_workspace = Path::new("expression/deps-workspace"); | ||
|
|
||
| if !deps_workspace.exists() || !deps_workspace.is_dir() { | ||
| eprintln!("Dependencies workspace does not exist at {:?}", deps_workspace); | ||
| std::process::exit(1); | ||
| } | ||
|
|
||
| for entry in fs::read_dir(deps_workspace).unwrap() { | ||
| let entry = entry.unwrap(); | ||
| let path = entry.path(); | ||
| if path.is_file() { | ||
| fs::copy(&path, temp_dir.path().join(path.file_name().unwrap())).unwrap(); | ||
| } | ||
| } | ||
|
|
||
| eprintln!("Copied dependencies workspace to {:?}", temp_dir); | ||
|
|
||
| // Run `cargo update` in the temporary directory | ||
|
|
||
| let status = std::process::Command::new("cargo") | ||
| .arg("update") | ||
| .current_dir(temp_dir.path()) | ||
| .status() | ||
| .unwrap(); | ||
|
|
||
| if !status.success() { | ||
| eprintln!("Failed to update dependencies"); | ||
| std::process::exit(1); | ||
| } | ||
|
|
||
| eprintln!("Updated dependencies successfully"); | ||
|
|
||
| // Copy the updated lockfile back to the workspace | ||
|
|
||
| fs::copy(temp_dir.path().join("Cargo.lock"), deps_workspace.join("Cargo.lock")).unwrap(); | ||
|
|
||
| eprintln!("Copied updated lockfile back to {:?}", deps_workspace); | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.