Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
pront committed Jan 10, 2025
1 parent e7b8d72 commit e2a0db4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vdev/src/commands/release/homebrew.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,17 @@ pub struct Cli {

impl Cli {
pub fn exec(self) -> Result<()> {
// Create a temporary directory
// Create temporary directory for cloning the homebrew-brew repository
let td = TempDir::new()?;
env::set_current_dir(td.path())?;

// Clone the repository and set up Git
debug!("Cloning the homebrew repository for username: {}", self.username);
clone_and_setup_git(&self.username)?;

let vector_version = env::var("VECTOR_VERSION")?;
debug!("Updating the vector.rb formula for VECTOR_VERSION={vector_version}.");
update_formula("Formula/vector.rb", &vector_version)?;

// Commit and push changes
debug!("Committing and pushing changes (if any).");
commit_and_push_changes(&vector_version)?;

Expand Down

0 comments on commit e2a0db4

Please sign in to comment.